pdftilecut
pdftilecut copied to clipboard
cannot find MediaBox for page
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
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.
As a potential workaround, try printing the PDF to another PDF and see if that one works.