PDF merge keeps mixed page sizes; verify the downloaded file, not thumbnails
A merged PDF containing an A4 cover and a Letter-sized report can be correct even if a viewer displays every page at the same width. Viewer previews therefore cannot confirm that the downloaded file preserved each page's dimensions. The article's test used synthetic fixtures and an actual browser download, then checked the output with pypdf and Poppler's pdfinfo. Results matched the intended order, with the Letter page remaining Letter-sized in the middle. The author notes this is a narrow acceptance check, not proof for arbitrary PDFs, and that boxes, rotation and UserUnit must also be compared.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in