|
|
|
@ -234,6 +234,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
@@ -234,6 +234,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|
|
|
|
var w = dict.get('Width', 'W'); |
|
|
|
|
var h = dict.get('Height', 'H'); |
|
|
|
|
|
|
|
|
|
if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) { |
|
|
|
|
warn('Image exceeded maximum allowed size and was removed.'); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var dependencies = {}; |
|
|
|
|
var retData = { |
|
|
|
|
dependencies: dependencies |
|
|
|
@ -706,6 +711,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
@@ -706,6 +711,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|
|
|
|
} else if ('Image' == type.name) { |
|
|
|
|
var data = self.buildPaintImageXObject( |
|
|
|
|
resources, xobj, false); |
|
|
|
|
if (!data) { |
|
|
|
|
args = []; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Util.extendObj(dependencies, data.dependencies); |
|
|
|
|
self.insertDependencies(queue, data.dependencies); |
|
|
|
|
fn = data.fn; |
|
|
|
@ -720,6 +729,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
@@ -720,6 +729,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|
|
|
|
} else if (cmd == 'EI') { |
|
|
|
|
var data = self.buildPaintImageXObject( |
|
|
|
|
resources, args[0], true); |
|
|
|
|
if (!data) { |
|
|
|
|
args = []; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Util.extendObj(dependencies, data.dependencies); |
|
|
|
|
self.insertDependencies(queue, data.dependencies); |
|
|
|
|
fn = data.fn; |
|
|
|
|