Merge pull request #392 from notmasteryet/issue-389

Not reading the dictionary tail if streams are not allowed #389
This commit is contained in:
vingtetun 2011-08-29 19:29:38 -07:00
commit 64baf332bc

5
pdf.js
View File

@ -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();
}