Compatible with newer PyPDF2 versions