mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
replacing non-existent page content with empty one
This commit is contained in:
parent
cf00831a00
commit
982ea98c44
1 changed files with 3 additions and 0 deletions
|
@ -196,6 +196,9 @@ var Page = (function PageClosure() {
|
|||
for (i = 0; i < n; ++i)
|
||||
content[i] = xref.fetchIfRef(content[i]);
|
||||
content = new StreamsSequenceStream(content);
|
||||
} else if (!content) {
|
||||
// replacing non-existent page content with empty one
|
||||
content = new Stream(new Uint8Array(0));
|
||||
}
|
||||
|
||||
var pe = this.pe = new PartialEvaluator(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue