pdf.js/test/pdfs/issue11330.pdf.link
Jonas Jenwald 9199b02a42 Subtract stream.start when getting the startXRef property for documents with a Linearization dictionary (issue 11330)
For documents with a Linearization dictionary the computed `startXRef` position will be relative to the raw file, rather than the actual PDF document itself (which begins with `%PDF-`).
Hence it's necessary to subtract `stream.start` in this case, since otherwise the `XRef.readXRef` method will increment the position too far resulting in parsing errors.
2019-11-16 09:29:10 +01:00

2 lines
68 B
SYSTEMD

https://github.com/mozilla/pdf.js/files/3844109/9069_10755570.1.pdf