Browse Source

PDF.js version 1.7.327 - See mozilla/pdf.js@4e201d3787101dd7b2fc52754f4788c2e6af351d

master v1.7.327
pdfjsbot 8 years ago
parent
commit
ab9b5d1580
  1. 2
      bower.json
  2. 53
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.min.js
  5. 45
      build/pdf.worker.js
  6. 14
      build/pdf.worker.min.js
  7. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.7.325", "version": "1.7.327",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

53
build/pdf.combined.js

@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.325'; exports.version = '1.7.327';
exports.build = '9db4240b'; exports.build = '4e201d37';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -38774,8 +38774,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.325'; PDFJS.version = '1.7.327';
PDFJS.build = '9db4240b'; PDFJS.build = '4e201d37';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -39199,21 +39199,6 @@ var Annotation = function AnnotationClosure() {
}); });
} }
}; };
Annotation.appendToOperatorList = function Annotation_appendToOperatorList(annotations, opList, partialEvaluator, task, intent, renderForms) {
var annotationPromises = [];
for (var i = 0, n = annotations.length; i < n; ++i) {
if (intent === 'display' && annotations[i].viewable || intent === 'print' && annotations[i].printable) {
annotationPromises.push(annotations[i].getOperatorList(partialEvaluator, task, renderForms));
}
}
return Promise.all(annotationPromises).then(function (operatorLists) {
opList.addOp(OPS.beginAnnotations, []);
for (var i = 0, n = operatorLists.length; i < n; ++i) {
opList.addOpList(operatorLists[i]);
}
opList.addOp(OPS.endAnnotations, []);
});
};
return Annotation; return Annotation;
}(); }();
var AnnotationBorderStyle = function AnnotationBorderStyleClosure() { var AnnotationBorderStyle = function AnnotationBorderStyleClosure() {
@ -41717,6 +41702,7 @@ var coreParser = __w_pdfjs_require__(6);
var coreCrypto = __w_pdfjs_require__(17); var coreCrypto = __w_pdfjs_require__(17);
var coreEvaluator = __w_pdfjs_require__(18); var coreEvaluator = __w_pdfjs_require__(18);
var coreAnnotation = __w_pdfjs_require__(27); var coreAnnotation = __w_pdfjs_require__(27);
var OPS = sharedUtil.OPS;
var MissingDataException = sharedUtil.MissingDataException; var MissingDataException = sharedUtil.MissingDataException;
var Util = sharedUtil.Util; var Util = sharedUtil.Util;
var assert = sharedUtil.assert; var assert = sharedUtil.assert;
@ -41745,7 +41731,6 @@ var Linearization = coreParser.Linearization;
var calculateMD5 = coreCrypto.calculateMD5; var calculateMD5 = coreCrypto.calculateMD5;
var OperatorList = coreEvaluator.OperatorList; var OperatorList = coreEvaluator.OperatorList;
var PartialEvaluator = coreEvaluator.PartialEvaluator; var PartialEvaluator = coreEvaluator.PartialEvaluator;
var Annotation = coreAnnotation.Annotation;
var AnnotationFactory = coreAnnotation.AnnotationFactory; var AnnotationFactory = coreAnnotation.AnnotationFactory;
var Page = function PageClosure() { var Page = function PageClosure() {
var DEFAULT_USER_UNIT = 1.0; var DEFAULT_USER_UNIT = 1.0;
@ -41755,6 +41740,9 @@ var Page = function PageClosure() {
612, 612,
792 792
]; ];
function isAnnotationRenderable(annotation, intent) {
return intent === 'display' && annotation.viewable || intent === 'print' && annotation.printable;
}
function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache, builtInCMapCache) { function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache, builtInCMapCache) {
this.pdfManager = pdfManager; this.pdfManager = pdfManager;
this.pageIndex = pageIndex; this.pageIndex = pageIndex;
@ -41916,8 +41904,18 @@ var Page = function PageClosure() {
pageOpList.flush(true); pageOpList.flush(true);
return pageOpList; return pageOpList;
} }
var annotationsReadyPromise = Annotation.appendToOperatorList(annotations, pageOpList, partialEvaluator, task, intent, renderInteractiveForms); var i, ii, opListPromises = [];
return annotationsReadyPromise.then(function () { for (i = 0, ii = annotations.length; i < ii; i++) {
if (isAnnotationRenderable(annotations[i], intent)) {
opListPromises.push(annotations[i].getOperatorList(partialEvaluator, task, renderInteractiveForms));
}
}
return Promise.all(opListPromises).then(function (opLists) {
pageOpList.addOp(OPS.beginAnnotations, []);
for (i = 0, ii = opLists.length; i < ii; i++) {
pageOpList.addOpList(opLists[i]);
}
pageOpList.addOp(OPS.endAnnotations, []);
pageOpList.flush(true); pageOpList.flush(true);
return pageOpList; return pageOpList;
}); });
@ -41952,12 +41950,9 @@ var Page = function PageClosure() {
var annotations = this.annotations; var annotations = this.annotations;
var annotationsData = []; var annotationsData = [];
for (var i = 0, n = annotations.length; i < n; ++i) { for (var i = 0, n = annotations.length; i < n; ++i) {
if (intent) { if (!intent || isAnnotationRenderable(annotations[i], intent)) {
if (!(intent === 'display' && annotations[i].viewable) && !(intent === 'print' && annotations[i].printable)) { annotationsData.push(annotations[i].data);
continue;
}
} }
annotationsData.push(annotations[i].data);
} }
return annotationsData; return annotationsData;
}, },
@ -57881,8 +57876,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict"; "use strict";
var pdfjsVersion = '1.7.325'; var pdfjsVersion = '1.7.327';
var pdfjsBuild = '9db4240b'; var pdfjsBuild = '4e201d37';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

12
build/pdf.js

@ -3735,8 +3735,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.325'; exports.version = '1.7.327';
exports.build = '9db4240b'; exports.build = '4e201d37';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -5768,8 +5768,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.325'; PDFJS.version = '1.7.327';
PDFJS.build = '9db4240b'; PDFJS.build = '4e201d37';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9855,8 +9855,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict"; "use strict";
var pdfjsVersion = '1.7.325'; var pdfjsVersion = '1.7.327';
var pdfjsBuild = '9db4240b'; var pdfjsBuild = '4e201d37';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9); var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

45
build/pdf.worker.js vendored

@ -35434,21 +35434,6 @@ var Annotation = function AnnotationClosure() {
}); });
} }
}; };
Annotation.appendToOperatorList = function Annotation_appendToOperatorList(annotations, opList, partialEvaluator, task, intent, renderForms) {
var annotationPromises = [];
for (var i = 0, n = annotations.length; i < n; ++i) {
if (intent === 'display' && annotations[i].viewable || intent === 'print' && annotations[i].printable) {
annotationPromises.push(annotations[i].getOperatorList(partialEvaluator, task, renderForms));
}
}
return Promise.all(annotationPromises).then(function (operatorLists) {
opList.addOp(OPS.beginAnnotations, []);
for (var i = 0, n = operatorLists.length; i < n; ++i) {
opList.addOpList(operatorLists[i]);
}
opList.addOp(OPS.endAnnotations, []);
});
};
return Annotation; return Annotation;
}(); }();
var AnnotationBorderStyle = function AnnotationBorderStyleClosure() { var AnnotationBorderStyle = function AnnotationBorderStyleClosure() {
@ -37952,6 +37937,7 @@ var coreParser = __w_pdfjs_require__(5);
var coreCrypto = __w_pdfjs_require__(13); var coreCrypto = __w_pdfjs_require__(13);
var coreEvaluator = __w_pdfjs_require__(14); var coreEvaluator = __w_pdfjs_require__(14);
var coreAnnotation = __w_pdfjs_require__(20); var coreAnnotation = __w_pdfjs_require__(20);
var OPS = sharedUtil.OPS;
var MissingDataException = sharedUtil.MissingDataException; var MissingDataException = sharedUtil.MissingDataException;
var Util = sharedUtil.Util; var Util = sharedUtil.Util;
var assert = sharedUtil.assert; var assert = sharedUtil.assert;
@ -37980,7 +37966,6 @@ var Linearization = coreParser.Linearization;
var calculateMD5 = coreCrypto.calculateMD5; var calculateMD5 = coreCrypto.calculateMD5;
var OperatorList = coreEvaluator.OperatorList; var OperatorList = coreEvaluator.OperatorList;
var PartialEvaluator = coreEvaluator.PartialEvaluator; var PartialEvaluator = coreEvaluator.PartialEvaluator;
var Annotation = coreAnnotation.Annotation;
var AnnotationFactory = coreAnnotation.AnnotationFactory; var AnnotationFactory = coreAnnotation.AnnotationFactory;
var Page = function PageClosure() { var Page = function PageClosure() {
var DEFAULT_USER_UNIT = 1.0; var DEFAULT_USER_UNIT = 1.0;
@ -37990,6 +37975,9 @@ var Page = function PageClosure() {
612, 612,
792 792
]; ];
function isAnnotationRenderable(annotation, intent) {
return intent === 'display' && annotation.viewable || intent === 'print' && annotation.printable;
}
function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache, builtInCMapCache) { function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache, builtInCMapCache) {
this.pdfManager = pdfManager; this.pdfManager = pdfManager;
this.pageIndex = pageIndex; this.pageIndex = pageIndex;
@ -38151,8 +38139,18 @@ var Page = function PageClosure() {
pageOpList.flush(true); pageOpList.flush(true);
return pageOpList; return pageOpList;
} }
var annotationsReadyPromise = Annotation.appendToOperatorList(annotations, pageOpList, partialEvaluator, task, intent, renderInteractiveForms); var i, ii, opListPromises = [];
return annotationsReadyPromise.then(function () { for (i = 0, ii = annotations.length; i < ii; i++) {
if (isAnnotationRenderable(annotations[i], intent)) {
opListPromises.push(annotations[i].getOperatorList(partialEvaluator, task, renderInteractiveForms));
}
}
return Promise.all(opListPromises).then(function (opLists) {
pageOpList.addOp(OPS.beginAnnotations, []);
for (i = 0, ii = opLists.length; i < ii; i++) {
pageOpList.addOpList(opLists[i]);
}
pageOpList.addOp(OPS.endAnnotations, []);
pageOpList.flush(true); pageOpList.flush(true);
return pageOpList; return pageOpList;
}); });
@ -38187,12 +38185,9 @@ var Page = function PageClosure() {
var annotations = this.annotations; var annotations = this.annotations;
var annotationsData = []; var annotationsData = [];
for (var i = 0, n = annotations.length; i < n; ++i) { for (var i = 0, n = annotations.length; i < n; ++i) {
if (intent) { if (!intent || isAnnotationRenderable(annotations[i], intent)) {
if (!(intent === 'display' && annotations[i].viewable) && !(intent === 'print' && annotations[i].printable)) { annotationsData.push(annotations[i].data);
continue;
}
} }
annotationsData.push(annotations[i].data);
} }
return annotationsData; return annotationsData;
}, },
@ -51069,8 +51064,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict"; "use strict";
var pdfjsVersion = '1.7.325'; var pdfjsVersion = '1.7.327';
var pdfjsBuild = '9db4240b'; var pdfjsBuild = '4e201d37';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(19); __w_pdfjs_require__(19);

14
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.7.325", "version": "1.7.327",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save