@ -4310,8 +4298,18 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -4310,8 +4298,18 @@ var WorkerTransport = function WorkerTransportClosure() {
reject(newError('Error during JPEG image loading'));
};
img.src=imageData;
}).then(function(img){
pageProxy.objs.resolve(id,img);
});
case'Image':
imageData=data[3];
pageProxy.objs.resolve(id,imageData);
@ -4700,8 +4698,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -4700,8 +4698,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@ -32786,10 +32812,11 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -32786,10 +32812,11 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -32810,19 +32837,19 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -32810,19 +32837,19 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -33019,20 +33046,30 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33019,20 +33046,30 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
(0,_util.warn)('Image dimensions are missing, or not numbers.');
return;
returnPromise.resolve();
}
varmaxImageSize=this.options.maxImageSize;
if(maxImageSize!==-1&&w*h>maxImageSize){
(0,_util.warn)('Image exceeded maximum allowed size and was removed.');
return;
returnPromise.resolve();
}
varimageMask=dict.get('ImageMask','IM')||false;
varimgData,args;
@ -33058,37 +33095,48 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33058,37 +33095,48 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -33100,12 +33148,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33100,12 +33148,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
pdfFunctionFactory:this.pdfFunctionFactory
});
}
operatorList.addDependency(objId);
args=[objId,w,h];
_image.PDFImage.buildImage({
handler:this.handler,
xref:this.xref,
res:resources,
image:image,
isInline:inline,
isInline:isInline,
nativeDecoder:nativeImageDecoder,
pdfFunctionFactory:this.pdfFunctionFactory
}).then(function(imageObj){
@ -33122,7 +33172,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33122,7 +33172,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -33435,15 +33487,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33435,15 +33487,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -33520,7 +33572,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33520,7 +33572,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -33553,9 +33612,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33553,9 +33612,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -33725,21 +33790,21 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -33725,21 +33790,21 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -95,10 +95,11 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -95,10 +95,11 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -119,19 +120,19 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -119,19 +120,19 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -328,20 +329,30 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -328,20 +329,30 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
(0,_util.warn)('Image dimensions are missing, or not numbers.');
return;
returnPromise.resolve();
}
varmaxImageSize=this.options.maxImageSize;
if(maxImageSize!==-1&&w*h>maxImageSize){
(0,_util.warn)('Image exceeded maximum allowed size and was removed.');
return;
returnPromise.resolve();
}
varimageMask=dict.get('ImageMask','IM')||false;
varimgData,args;
@ -367,37 +378,48 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -367,37 +378,48 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -409,12 +431,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -409,12 +431,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
pdfFunctionFactory:this.pdfFunctionFactory
});
}
operatorList.addDependency(objId);
args=[objId,w,h];
_image.PDFImage.buildImage({
handler:this.handler,
xref:this.xref,
res:resources,
image:image,
isInline:inline,
isInline:isInline,
nativeDecoder:nativeImageDecoder,
pdfFunctionFactory:this.pdfFunctionFactory
}).then(function(imageObj){
@ -431,7 +455,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -431,7 +455,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -744,15 +770,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -744,15 +770,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -829,7 +855,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -829,7 +855,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -862,9 +895,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -862,9 +895,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -1034,21 +1073,21 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@@ -1034,21 +1073,21 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
@ -1177,8 +1177,18 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1177,8 +1177,18 @@ var WorkerTransport = function WorkerTransportClosure() {
reject(newError('Error during JPEG image loading'));
};
img.src=imageData;
}).then(function(img){
pageProxy.objs.resolve(id,img);
});
case'Image':
imageData=data[3];
pageProxy.objs.resolve(id,imageData);
@ -1567,8 +1577,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -1567,8 +1577,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {