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

Ignore paint form XObject when the name is missing (issue 4558)

Fixes 4558 (since the font issues already appear to be fixed).
This commit is contained in:
Jonas Jenwald 2015-06-22 13:33:15 +02:00
parent 99415a75b7
commit 46a8485db4
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;