Skip to content

Conversation

@zobo
Copy link

@zobo zobo commented Mar 22, 2018

Cases where the /Filter value is an iref the filter lookup would search for "18 0 R" and fail to process content. This was seen with filter array values in a PDF-1.3.

@TH-Soft
Copy link
Contributor

TH-Soft commented Mar 23, 2018

Code looks good. Can you provide a non-confidential PDF that uses indirect filter objects for testing purposes?

@zobo
Copy link
Author

zobo commented Mar 23, 2018

Hi, the ones I've encountered I can sadly not share. I also do not have access to the generator. However the structure is quite interesting.

Here as an example, how the indirect array is used:

17 0 obj
<</Type/XObject/Subtype/Image/Filter 18 0 R/Length 1178/Name/00009/Width 280/Height 161/BitsPerComponent 1/ImageMask true>>stream 
...

However the referenced 18 0 is not available directly in the document, but rather embedded in a /ObjSim as the last non-XRef object.

4 0 obj
<</Length 1196/Filter/FlateDecode/Type/ObjStm/N 25/First 185>>stream 
...

Let me know if I can help you with any other info.

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

Successfully merging this pull request may close these issues.

2 participants