add object id to streams to prevent infinite loops.

fixes http://bugzil.la/1020858
This commit is contained in:
Fabian Lange 2014-06-10 11:29:25 +02:00
parent 806aa36aa8
commit 532d7246ea
2 changed files with 10 additions and 2 deletions

View file

@ -1175,9 +1175,10 @@ var XRef = (function XRefClosure() {
} else {
xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
}
if (isDict(xrefEntry)) {
if (isDict(xrefEntry)){
xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
} else if (isStream(xrefEntry)) {
xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen;
}
return xrefEntry;
},