Open binjo opened 6 years ago
That was fast, I was looking for this :) Sample here: https://malshare.io/sample.php?hash=e6b7392fb03ff9ff069a9ec5d4221641 I created a fix and PR for another parsing issue: https://github.com/jesparza/peepdf/pull/75 However the "hidden" stream isn't seeing because after the %%EOF, thanks for your code
Thanks @binjo! I want to merge first everything from a fork which is more active right now than master, I will try to do this fast, but I need to do some testing before. It is curious that having an isolated object really works with Adobe Reader, I am quite sure I read all the specification years ago, or if was not documented or they changed something...:?
It appears Acrobat will render pdf files properly even when object/stream def after %%EOF, however peepdf will discard the content due to stop at %%EOF.
e.g: the recent hot pdf exploit, bd23ad33accef14684d42c32769092a0
Current peepdf will failed to parse, throws exception.
The following tries to fix the problem.
Applying the change, there should be no issue of parsing said file:
It's a quick fix, you may refactor the logic a bit...