-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapted code to the latest version of PyPDF2 (>3.0.0)
fixes the following errors with PyPDF2 > 3.x: - failed to process samples/scans/007-captain-future-galaxy-drift-1.desc (PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.) - failed to process samples/scans/007-captain-future-galaxy-drift-1.desc (reader.numPages is deprecated and was removed in PyPDF2 3.0.0. Use failed to process samples/scans/007-captain-future-galaxy-drift-1.desc (reader.getPage(pageNumber) is deprecated and was removed in PyPDF2 3.0.0. Use reader.pages[page_number] instead.) - failed to process samples/scans/007-captain-future-galaxy-drift-1.desc (PdfFileWriter is deprecated and was removed in PyPDF2 3.0.0. Use PdfWriter instead.) - failed to process samples/scans/007-captain-future-galaxy-drift-1.desc (addPage is deprecated and was removed in PyPDF2 3.0.0. Use add_page instead.) - PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead. - outlines is deprecated and was removed in PyPDF2 3.0.0. Use outline instead. - 'PdfReader' object has no attribute 'resolvedObjects' - module 'PyPDF2' has no attribute 'pdf'
- Loading branch information
Showing
6 changed files
with
55 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PyPDF2 | ||
PyPDF2 >= 3.0.0 # the syntax has changed between PyPDF2 2.x and PyPDF2 3.x | ||
pillow | ||
opencv-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters