PDF bleed detection

Quoting from the PDF specification ISO 32000-1:2008 as published by Adobe: 14.11.2 Page Boundaries 14.11.2.1 General A PDF page may be prepared either for a finished medium, such as a sheet of paper, or as part of a prepress process in which the content of the page is placed on an intermediate medium, such as … Read more

Merge PDF files

You can use PyPdf2s PdfMerger class. File Concatenation You can simply concatenate files by using the append method. from PyPDF2 import PdfMerger pdfs = [‘file1.pdf’, ‘file2.pdf’, ‘file3.pdf’, ‘file4.pdf’] merger = PdfMerger() for pdf in pdfs: merger.append(pdf) merger.write(“result.pdf”) merger.close() You can pass file handles instead file paths if you want. File Merging If you want more … Read more