mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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.
1 line
68 B
SYSTEMD
1 line
68 B
SYSTEMD
https://github.com/mozilla/pdf.js/files/3844109/9069_10755570.1.pdf
|