@ -95,12 +92,12 @@ var AnnotationElement = function AnnotationElementClosure() {
@@ -95,12 +92,12 @@ var AnnotationElement = function AnnotationElementClosure() {
@ -108,29 +105,29 @@ var AnnotationElement = function AnnotationElementClosure() {
@@ -108,29 +105,29 @@ var AnnotationElement = function AnnotationElementClosure() {
@ -170,13 +167,13 @@ var LinkAnnotationElement = function LinkAnnotationElementClosure() {
@@ -170,13 +167,13 @@ var LinkAnnotationElement = function LinkAnnotationElementClosure() {
@ -218,7 +215,7 @@ var TextAnnotationElement = function TextAnnotationElementClosure() {
@@ -218,7 +215,7 @@ var TextAnnotationElement = function TextAnnotationElementClosure() {
@ -241,7 +238,7 @@ var WidgetAnnotationElement = function WidgetAnnotationElementClosure() {
@@ -241,7 +238,7 @@ var WidgetAnnotationElement = function WidgetAnnotationElementClosure() {
@ -254,7 +251,7 @@ var TextWidgetAnnotationElement = function TextWidgetAnnotationElementClosure()
@@ -254,7 +251,7 @@ var TextWidgetAnnotationElement = function TextWidgetAnnotationElementClosure()
@ -314,7 +311,7 @@ var CheckboxWidgetAnnotationElement = function CheckboxWidgetAnnotationElementCl
@@ -314,7 +311,7 @@ var CheckboxWidgetAnnotationElement = function CheckboxWidgetAnnotationElementCl
@ -333,7 +330,7 @@ var RadioButtonWidgetAnnotationElement = function RadioButtonWidgetAnnotationEle
@@ -333,7 +330,7 @@ var RadioButtonWidgetAnnotationElement = function RadioButtonWidgetAnnotationEle
@ -353,7 +350,7 @@ var ChoiceWidgetAnnotationElement = function ChoiceWidgetAnnotationElementClosur
@@ -353,7 +350,7 @@ var ChoiceWidgetAnnotationElement = function ChoiceWidgetAnnotationElementClosur
@ -386,7 +383,7 @@ var PopupAnnotationElement = function PopupAnnotationElementClosure() {
@@ -386,7 +383,7 @@ var PopupAnnotationElement = function PopupAnnotationElementClosure() {
@ -406,7 +403,7 @@ var PopupAnnotationElement = function PopupAnnotationElementClosure() {
@@ -406,7 +403,7 @@ var PopupAnnotationElement = function PopupAnnotationElementClosure() {
@ -498,7 +495,7 @@ var LineAnnotationElement = function LineAnnotationElementClosure() {
@@ -498,7 +495,7 @@ var LineAnnotationElement = function LineAnnotationElementClosure() {
@ -530,7 +527,7 @@ var HighlightAnnotationElement = function HighlightAnnotationElementClosure() {
@@ -530,7 +527,7 @@ var HighlightAnnotationElement = function HighlightAnnotationElementClosure() {
@ -546,7 +543,7 @@ var UnderlineAnnotationElement = function UnderlineAnnotationElementClosure() {
@@ -546,7 +543,7 @@ var UnderlineAnnotationElement = function UnderlineAnnotationElementClosure() {
@ -562,7 +559,7 @@ var SquigglyAnnotationElement = function SquigglyAnnotationElementClosure() {
@@ -562,7 +559,7 @@ var SquigglyAnnotationElement = function SquigglyAnnotationElementClosure() {
@ -578,7 +575,7 @@ var StrikeOutAnnotationElement = function StrikeOutAnnotationElementClosure() {
@@ -578,7 +575,7 @@ var StrikeOutAnnotationElement = function StrikeOutAnnotationElementClosure() {
@ -593,15 +590,15 @@ var FileAttachmentAnnotationElement = function FileAttachmentAnnotationElementCl
@@ -593,15 +590,15 @@ var FileAttachmentAnnotationElement = function FileAttachmentAnnotationElementCl
@ -616,7 +613,7 @@ var FileAttachmentAnnotationElement = function FileAttachmentAnnotationElementCl
@@ -616,7 +613,7 @@ var FileAttachmentAnnotationElement = function FileAttachmentAnnotationElementCl
@ -640,7 +637,7 @@ var AnnotationLayer = function AnnotationLayerClosure() {
@@ -640,7 +637,7 @@ var AnnotationLayer = function AnnotationLayerClosure() {
@ -653,7 +650,7 @@ var AnnotationLayer = function AnnotationLayerClosure() {
@@ -653,7 +650,7 @@ var AnnotationLayer = function AnnotationLayerClosure() {
@ -242,7 +221,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
@@ -242,7 +221,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
@ -821,17 +800,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -821,17 +800,17 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -840,7 +819,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -840,7 +819,7 @@ var WorkerTransport = function WorkerTransportClosure() {
this._passwordCapability.reject(newError('Worker was destroyed during onPassword callback'));
}
@ -899,31 +878,31 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -899,31 +878,31 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -962,21 +941,21 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -962,21 +941,21 @@ var WorkerTransport = function WorkerTransportClosure() {
varexportedData=data[2];
if('error'inexportedData){
varexportedError=exportedData.error;
warn('Error during font loading: '+exportedError);
(0,_util.warn)('Error during font loading: '+exportedError);
@ -987,7 +966,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -987,7 +966,7 @@ var WorkerTransport = function WorkerTransportClosure() {
this.commonObjs.resolve(id,data[2]);
break;
default:
error('Got unknown common object type '+type);
(0,_util.error)('Got unknown common object type '+type);
@ -1005,7 +984,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1005,7 +984,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1016,7 +995,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1016,7 +995,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1040,7 +1019,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1040,7 +1019,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1121,7 +1100,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1121,7 +1100,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1172,7 +1151,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@@ -1172,7 +1151,7 @@ var WorkerTransport = function WorkerTransportClosure() {
@ -1204,7 +1183,7 @@ var PDFObjects = function PDFObjectsClosure() {
@@ -1204,7 +1183,7 @@ var PDFObjects = function PDFObjectsClosure() {
returnthis.objs[objId];
}
varobj={
capability:createPromiseCapability(),
capability:(0,_util.createPromiseCapability)(),
data:null,
resolved:false
};
@ -1218,7 +1197,7 @@ var PDFObjects = function PDFObjectsClosure() {
@@ -1218,7 +1197,7 @@ var PDFObjects = function PDFObjectsClosure() {
}
varobj=this.objs[objId];
if(!obj||!obj.resolved){
error('Requesting object that isn\'t resolved yet '+objId);
(0,_util.error)('Requesting object that isn\'t resolved yet '+objId);
}
returnobj.data;
},
@ -1284,7 +1263,7 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -1284,7 +1263,7 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@ -1295,13 +1274,13 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -1295,13 +1274,13 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@ -1312,8 +1291,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@@ -1312,8 +1291,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
@ -1371,7 +1350,7 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -1371,7 +1350,7 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
varlisteners=[];
return{
listen:functionlisten(cb){
deprecated('Global UnsupportedManager.listen is used: '+' use PDFDocumentLoadingTask.onUnsupportedFeature instead');
(0,_util.deprecated)('Global UnsupportedManager.listen is used: '+' use PDFDocumentLoadingTask.onUnsupportedFeature instead');
listeners.push(cb);
},
notify:functionnotify(featureId){
@ -1381,11 +1360,16 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -1381,11 +1360,16 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@ -295,9 +285,9 @@ var CanvasExtraState = function CanvasExtraStateClosure() {
@@ -295,9 +285,9 @@ var CanvasExtraState = function CanvasExtraStateClosure() {
this.alphaIsShape=false;
this.fontSize=0;
this.fontSizeScale=1;
this.textMatrix=IDENTITY_MATRIX;
this.textMatrix=_util.IDENTITY_MATRIX;
this.textMatrixScale=1;
this.fontMatrix=FONT_IDENTITY_MATRIX;
this.fontMatrix=_util.FONT_IDENTITY_MATRIX;
this.leading=0;
this.x=0;
this.y=0;
@ -306,7 +296,7 @@ var CanvasExtraState = function CanvasExtraStateClosure() {
@@ -306,7 +296,7 @@ var CanvasExtraState = function CanvasExtraStateClosure() {
@ -824,7 +814,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -824,7 +814,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
y=current.y;
for(vari=0,j=0,ii=ops.length;i<ii;i++){
switch(ops[i]|0){
caseOPS.rectangle:
case_util.OPS.rectangle:
x=args[j++];
y=args[j++];
varwidth=args[j++];
@ -844,35 +834,35 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -844,35 +834,35 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -964,7 +954,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -964,7 +954,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
this.pendingClip=EO_CLIP;
},
beginText:functionCanvasGraphics_beginText(){
this.current.textMatrix=IDENTITY_MATRIX;
this.current.textMatrix=_util.IDENTITY_MATRIX;
this.current.textMatrixScale=1;
this.current.x=this.current.lineX=0;
this.current.y=this.current.lineY=0;
@ -1005,11 +995,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1005,11 +995,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
varfontObj=this.commonObjs.get(fontRefName);
varcurrent=this.current;
if(!fontObj){
error('Can\'t find font for '+fontRefName);
(0,_util.error)('Can\'t find font for '+fontRefName);
warn('Invalid font matrix for font '+fontRefName);
(0,_util.warn)('Invalid font matrix for font '+fontRefName);
}
if(size<0){
size=-size;
@ -1060,8 +1050,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1060,8 +1050,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1071,18 +1061,18 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1071,18 +1061,18 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1109,7 +1099,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1109,7 +1099,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1132,7 +1122,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1132,7 +1122,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1147,8 +1137,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1147,8 +1137,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1164,7 +1154,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1164,7 +1154,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
i;
for(i=0;i<glyphsLength;++i){
varglyph=glyphs[i];
if(isNum(glyph)){
if((0,_util.isNum)(glyph)){
x+=spacingDir*glyph*fontSize/1000;
continue;
}
@ -1234,9 +1224,9 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1234,9 +1224,9 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1248,7 +1238,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1248,7 +1238,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
ctx.scale(textHScale,fontDirection);
for(i=0;i<glyphsLength;++i){
glyph=glyphs[i];
if(isNum(glyph)){
if((0,_util.isNum)(glyph)){
spacingLength=spacingDir*glyph*fontSize/1000;
this.ctx.translate(spacingLength,0);
current.x+=spacingLength*textHScale;
@ -1257,7 +1247,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1257,7 +1247,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
warn('Type3 character \"'+glyph.operatorListId+'\" is not available');
(0,_util.warn)('Type3 character \"'+glyph.operatorListId+'\" is not available');
continue;
}
this.processingType3=glyph;
@ -1266,7 +1256,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1266,7 +1256,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1291,9 +1281,9 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1291,9 +1281,9 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1305,12 +1295,12 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1305,12 +1295,12 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1318,17 +1308,17 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1318,17 +1308,17 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1340,19 +1330,19 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1340,19 +1330,19 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1368,19 +1358,19 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1368,19 +1358,19 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
this.save();
varcurrentCtx=this.ctx;
if(!group.isolated){
info('TODO: Support non-isolated groups.');
(0,_util.info)('TODO: Support non-isolated groups.');
@ -1457,7 +1447,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1457,7 +1447,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1473,7 +1463,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1473,7 +1463,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1573,7 +1563,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1573,7 +1563,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1581,7 +1571,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1581,7 +1571,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1686,7 +1676,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1686,7 +1676,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@ -1721,8 +1711,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
@@ -1721,8 +1711,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
assert(canvasAndContextPair.canvas,'canvas is not specified');
(0,_util.assert)(canvasAndContextPair.canvas,'canvas is not specified');
canvasAndContextPair.canvas.width=0;
canvasAndContextPair.canvas.height=0;
canvasAndContextPair.canvas=null;
@ -77,12 +76,12 @@ var DOMCMapReaderFactory = function DOMCMapReaderFactoryClosure() {
@@ -77,12 +76,12 @@ var DOMCMapReaderFactory = function DOMCMapReaderFactoryClosure() {
@ -157,7 +159,7 @@ var createMeshCanvas = function createMeshCanvasClosure() {
@@ -157,7 +159,7 @@ var createMeshCanvas = function createMeshCanvasClosure() {
}
break;
default:
error('illigal figure');
(0,_util.error)('illigal figure');
break;
}
}
@ -184,8 +186,8 @@ var createMeshCanvas = function createMeshCanvasClosure() {
@@ -184,8 +186,8 @@ var createMeshCanvas = function createMeshCanvasClosure() {
@ -102,7 +105,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@@ -102,7 +105,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@ -160,7 +163,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@@ -160,7 +163,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@ -190,7 +193,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@@ -190,7 +193,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@ -400,7 +403,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@@ -400,7 +403,7 @@ var renderTextLayer = function renderTextLayerClosure() {
@ -474,11 +477,11 @@ var renderTextLayer = function renderTextLayerClosure() {
@@ -474,11 +477,11 @@ var renderTextLayer = function renderTextLayerClosure() {
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
varPDFDocumentProperties=function(){
functionPDFDocumentProperties(options){
this.fields=options.fields;
_classCallCheck(this,PDFDocumentProperties);
this.overlayName=options.overlayName;
this.fields=options.fields;
this.container=options.container;
this.rawFileSize=0;
this.url=null;
@ -34,67 +42,83 @@ var PDFDocumentProperties = function PDFDocumentPropertiesClosure() {
@@ -34,67 +42,83 @@ var PDFDocumentProperties = function PDFDocumentPropertiesClosure() {
@ -109,8 +133,10 @@ var PDFDocumentProperties = function PDFDocumentPropertiesClosure() {
@@ -109,8 +133,10 @@ var PDFDocumentProperties = function PDFDocumentPropertiesClosure() {
@ -142,7 +168,9 @@ var PDFDocumentProperties = function PDFDocumentPropertiesClosure() {
@@ -142,7 +168,9 @@ var PDFDocumentProperties = function PDFDocumentPropertiesClosure() {
@ -53,6 +53,8 @@ var PDFFindController = function PDFFindControllerClosure() {
@@ -53,6 +53,8 @@ var PDFFindController = function PDFFindControllerClosure() {
}
PDFFindController.prototype={
reset:functionPDFFindController_reset(){
var_this=this;
this.startedTextExtraction=false;
this.extractTextPromises=[];
this.pendingFindMatches=Object.create(null);
@ -74,9 +76,9 @@ var PDFFindController = function PDFFindControllerClosure() {
@@ -74,9 +76,9 @@ var PDFFindController = function PDFFindControllerClosure() {
@ -223,7 +225,7 @@ var PDFFindController = function PDFFindControllerClosure() {
@@ -223,7 +225,7 @@ var PDFFindController = function PDFFindControllerClosure() {
@ -201,26 +201,22 @@ var PDFThumbnailView = function PDFThumbnailViewClosure() {
@@ -201,26 +201,22 @@ var PDFThumbnailView = function PDFThumbnailViewClosure() {
@ -247,7 +243,7 @@ var PDFThumbnailView = function PDFThumbnailViewClosure() {
@@ -247,7 +243,7 @@ var PDFThumbnailView = function PDFThumbnailViewClosure() {