We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e085df5 commit 18a60d0Copy full SHA for 18a60d0
1 file changed
src/pdfbaker/common.py
@@ -56,12 +56,15 @@ def combine_pdfs(pdf_files, output_file):
56
with open(pdf_file, "rb") as file_obj:
57
pdf_reader = pypdf.PdfReader(file_obj)
58
try:
59
- # The proper method to append PDFs
+ # The proper method to assemble PDFs
60
pdf_writer.append(pdf_reader)
61
except KeyError as exc:
62
# PDF has broken annotations with missing /Subtype
63
if str(exc) == "'/Subtype'":
64
- print(f"Warning: PDF {pdf_file} has broken annotations. Falling back to page-by-page method.")
+ print(
65
+ f"Warning: PDF {pdf_file} has broken annotations. "
66
+ f"Falling back to page-by-page method."
67
+ )
68
for page in pdf_reader.pages:
69
pdf_writer.add_page(page)
70
else:
0 commit comments