Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cannot find MediaBox for page #21

Open
rmharp opened this issue Oct 11, 2023 · 2 comments
Open

cannot find MediaBox for page #21

rmharp opened this issue Oct 11, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@rmharp
Copy link

rmharp commented Oct 11, 2023

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

@oxplot oxplot self-assigned this Oct 17, 2023
@oxplot
Copy link
Owner

oxplot commented Oct 17, 2023

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
Copy link
Owner

oxplot commented Nov 30, 2023

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants