1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #2341 from yurydelendik/issue-2337

Fixes stream loading for XRefStm
This commit is contained in:
Brendan Dahl 2012-11-02 12:54:48 -07:00
commit 68cb985083
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) {