Skip to content
Snippets Groups Projects
Commit 4439ba3c authored by Martin Mareš's avatar Martin Mareš
Browse files

Upgrade PyPDF2: Breaking changes

parent d66da7f8
No related branches found
No related tags found
No related merge requests found
......@@ -503,8 +503,8 @@ def handle_sort_scans(the_job: TheJob):
if p.file_nr not in readers:
readers[p.file_nr] = PyPDF2.PdfFileReader(job.file_path(in_files[p.file_nr]), strict=False)
# Přihodíme správnou stránku na výstup
writer.addPage(
readers[p.file_nr].getPage(p.page_nr)
writer.add_page(
readers[p.file_nr].pages[p.page_nr]
)
# Zapíšeme vše do správného souboru
with open(job.file_path(paper.filename()), 'wb') as f:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment