replacing non-existent page content with empty one

This commit is contained in:
notmasteryet 2012-01-09 20:08:22 -06:00
parent cf00831a00
commit 982ea98c44

View File

@ -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(