Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Find actual %%EOF end of file

$
0
0

I am trying to identify a PDF-file in a binary data stream.

 

I realize a PDF starts with %PDF and ends with %%EOF, but since there can be multiple %%EOF markers in one file, how do I determine the actual file end?

 

For technical reasons, I would prefer to follow the direction of the PDF, i.e., go from %PDF to %%EOF.

 

Any comment is appreciated.


Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>