1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #6138 from Snuffleupagus/issue-4558

Ignore paint form XObject when the name is missing (issue 4558)
This commit is contained in:
Tim van der Meij 2015-06-23 20:28:02 +02:00
commit 18e1a14e65
2 changed files with 15 additions and 0 deletions

View file

@ -658,6 +658,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
// eagerly compile XForm objects
var name = args[0].name;
if (!name) {
warn('XObject must be referred to by name.');
continue;
}
if (imageCache[name] !== undefined) {
operatorList.addOp(imageCache[name].fn, imageCache[name].args);
args = null;