Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.12 deprecated PyPDF2 functions #4

Open
impossibleobject opened this issue Aug 19, 2024 · 0 comments
Open

python 3.12 deprecated PyPDF2 functions #4

impossibleobject opened this issue Aug 19, 2024 · 0 comments

Comments

@impossibleobject
Copy link

Attached is an update suggestion as txt. Thanks for the great tool I wish I looked for it earlier.

PyPDF2 changes w/ respective lines:
PdfFileReader -> PdfReader 18
reader.getPage(pageNumber) -> reader.pages[page_number] 29, 33, 42
extractText -> extract_text 25
addPage -> add_page 43
reader.numPages -> len(reader.pages) 32, 40

Python3.12 change 26
SyntaxWarning: invalid escape sequence '\s'
https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes
2nd bullet point

pdf_trimmer.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant