rsc / pdf

PDF reader
BSD 3-Clause "New" or "Revised" License
510 stars 327 forks source link

fix a %%EOF bug #24

Open hmli opened 6 years ago

hmli commented 6 years ago

According to ISO 32000 3.4.4 File Trailer, %%EOF marker appear somewhere within the last 1024 bytes of the file.

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf

hmli commented 6 years ago

Actually I made a mistake. The " last 1024 bytes " limitation is not in ISO 32000, it's adobe's implementaion.

this question also discussed it