Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

PDF-hul: Wrong value in trailer /Size throws an unexpected exception #976

Open
BertrandCaron opened this issue Nov 20, 2024 · 0 comments
Open
Assignees
Milestone

Comments

@BertrandCaron
Copy link

Version used: 1.32.0

If the value of the attribute /Size in the trailer is lower than the real number of objects in the PDF, JHOVE returns an unexpected exception (error PDF-hul-157).

Shouldn't JHOVE be checking that the number in the trailer /Size attribute is the same as the number of objects referenced in the xref table? And return a specific error?

Note that other tools are more explicit than JHOVE; e.g., qpdf --check returns the following warning:

WARNING: my.pdf: reported number of objects (XX) is not one plus the highest object number

@carlwilson carlwilson self-assigned this Dec 5, 2024
@carlwilson carlwilson added this to the JHOVE 1.34 milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants