1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Fixes stream loading for XRefStm

This commit is contained in:
Yury Delendik 2012-11-02 08:26:45 -05:00
parent 9d3afdd2e0
commit 35af48123a
3 changed files with 10 additions and 0 deletions

View file

@ -710,6 +710,7 @@ var XRef = (function XRefClosure() {
error('invalid first and n parameters for ObjStm stream');
}
parser = new Parser(new Lexer(stream), false, this);
parser.allowStreams = true;
var i, entries = [], nums = [];
// read the object numbers to populate cache
for (i = 0; i < n; ++i) {