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
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…
Reference in New Issue
Block a user