mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #392 from notmasteryet/issue-389
Not reading the dictionary tail if streams are not allowed #389
This commit is contained in:
commit
64baf332bc
1 changed files with 3 additions and 2 deletions
5
pdf.js
5
pdf.js
|
@ -2714,8 +2714,9 @@ var Parser = (function() {
|
|||
|
||||
// stream objects are not allowed inside content streams or
|
||||
// object streams
|
||||
if (this.allowStreams && IsCmd(this.buf2, 'stream')) {
|
||||
return this.makeStream(dict, cipherTransform);
|
||||
if (IsCmd(this.buf2, 'stream')) {
|
||||
return this.allowStreams ?
|
||||
this.makeStream(dict, cipherTransform) : dict;
|
||||
} else {
|
||||
this.shift();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue