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

False positive for PDF-HUL-45 with Filter as indirect object #672

Closed
asciim0 opened this issue Apr 15, 2021 · 0 comments
Closed

False positive for PDF-HUL-45 with Filter as indirect object #672

asciim0 opened this issue Apr 15, 2021 · 0 comments
Assignees
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Milestone

Comments

@asciim0
Copy link
Contributor

asciim0 commented Apr 15, 2021

It seems that JHOVE throws the PDF-HUL-45 "Malformed FIlter" validation error when the filter is referenced as an indirect object.
Unfortunately I cannot share the file, but the example is as follows:

1402 0 obj
<</BitsPerComponent 8
/ColorSpace 1817 0 R
/Filter 1401 0 R
/Height 258
/Length 22703
/Subtype/Image
/Type/XObject
/Width 554>>stream

where the content of the referenced object 1401 is:

1401 0 obj
/DCTDecode
endobj

When I replace "/Filter 1401 0 R" with "/Filter /DCTDecode" and rebuild the xref, the PDF validates fine.

It appears that the according section in the code starts here:

/* There may be a single filter, which will be a string,

Maybe someone who can actually understand the code (not me) can verify this :-)

@carlwilson carlwilson added bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release labels Jun 16, 2022
@carlwilson carlwilson added this to the JHOVE 1.28 milestone Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Projects
Development

No branches or pull requests

2 participants