michaelrsweet / pdfio

PDFio is a simple C library for reading and writing PDF files.
https://www.msweet.org/pdfio
Apache License 2.0
198 stars 44 forks source link

Too many object streams error #58

Closed michaelrsweet closed 11 months ago

michaelrsweet commented 11 months ago

The attached file that was created by merging multiple PDF files yields the "too many object streams" error. tillA4-A3-A4-3-pdftopdf.pdf

akorobkin commented 11 months ago

Sorry, I was unclear in my email. This file yields "Unexpected 'startxref' token seen.", not Too many object streams.

michaelrsweet commented 11 months ago

[master 038fd86] Fix trailer dictionary handling (Issue #58) Fix generation number handling for object 0 (Issue #59)

akorobkin commented 11 months ago

Thanks, the "Unexpected 'startxref' token seen." is gone now.

Too many object streams error can be seen with this file for example: https://www.etsi.org/deliver/etsi_ts/136500_136599/13652101/16.06.00_60/ts_13652101v160600p.pdf