pdftilecut icon indicating copy to clipboard operation
pdftilecut copied to clipboard

cannot find MediaBox for page

Open rmharp opened this issue 2 years ago • 2 comments

pdftilecut -tile-size A4 -in Homework\ 32.pdf -out Homework_32_a4.pdf 2023/10/11 10:38:16 cannot find MediaBox for page: /Contents 5 0 R /Parent 3 0 R /Resources 7 0 R /Type /Page Homework 32.pdf

rmharp avatar Oct 11 '23 14:10 rmharp

Thanks for the report.

This is because pdftilecut doesn't handle inherited page attributes (from non-leaf page nodes) — 7.7.3.4 Inheritance of Page Attributes in PDF 32000-1:2008 standard.

Current code makes it very annoying to cater for this and I can't think of any workarounds ATM. Will update when I have something useful.

oxplot avatar Oct 17 '23 05:10 oxplot

As a potential workaround, try printing the PDF to another PDF and see if that one works.

oxplot avatar Nov 30 '23 01:11 oxplot