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:
parent
94cc2cdb75
commit
4d44eb6184
2 changed files with 19 additions and 8 deletions
|
@ -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 + '_');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue