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

fix stream reset, interrupting thread when pages are indexed

This commit is contained in:
notmasteryet 2011-12-11 18:14:52 -06:00
parent 94cc2cdb75
commit 4d44eb6184
2 changed files with 19 additions and 8 deletions

View file

@ -205,7 +205,7 @@ var Page = (function PageClosure() {
streams.push(xref.fetchIfRef(content[i]));
content = new StreamsSequenceStream(streams);
} else if (isStream(content))
content.pos = 0;
content.reset();
var pe = this.pe = new PartialEvaluator(
xref, handler, 'p' + this.pageNumber + '_');
@ -236,7 +236,7 @@ var Page = (function PageClosure() {
streams.push(xref.fetchIfRef(content[i]));
content = new StreamsSequenceStream(streams);
} else if (isStream(content))
content.pos = 0;
content.reset();
var pe = new PartialEvaluator(
xref, handler, 'p' + this.pageNumber + '_');