Browse Source

PDF.js version 1.1.322

master v1.1.322
Pdf Bot 10 years ago
parent
commit
59a0257d38
  1. 2
      bower.json
  2. 26
      build/pdf.combined.js
  3. 13
      build/pdf.js
  4. 17
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

26
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.320'; PDFJS.version = '1.1.322';
PDFJS.build = 'a58393f'; PDFJS.build = 'd3e90cf';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -2262,13 +2262,10 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
* annotation objects. * annotation objects.
*/ */
getAnnotations: function PDFPageProxy_getAnnotations() { getAnnotations: function PDFPageProxy_getAnnotations() {
if (this.annotationsPromise) { if (!this.annotationsPromise) {
return this.annotationsPromise; this.annotationsPromise = this.transport.getAnnotations(this.pageIndex);
} }
return this.annotationsPromise;
var promise = this.transport.getAnnotations(this.pageIndex);
this.annotationsPromise = promise;
return promise;
}, },
/** /**
* Begins the process of rendering a page to the desired context. * Begins the process of rendering a page to the desired context.
@ -9071,11 +9068,6 @@ var Page = (function PageClosure() {
return shadow(this, 'view', cropBox); return shadow(this, 'view', cropBox);
}, },
get annotationRefs() {
return shadow(this, 'annotationRefs',
this.getInheritedPageProp('Annots'));
},
get rotate() { get rotate() {
var rotate = this.getInheritedPageProp('Rotate') || 0; var rotate = this.getInheritedPageProp('Rotate') || 0;
// Normalize rotation so it's a multiple of 90 and between 0 and 270 // Normalize rotation so it's a multiple of 90 and between 0 and 270
@ -9221,14 +9213,14 @@ 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) {
annotationsData.push(annotations[i].getData()); annotationsData.push(annotations[i].data);
} }
return annotationsData; return annotationsData;
}, },
get annotations() { get annotations() {
var annotations = []; var annotations = [];
var annotationRefs = (this.annotationRefs || []); var annotationRefs = this.getInheritedPageProp('Annots') || [];
for (var i = 0, n = annotationRefs.length; i < n; ++i) { for (var i = 0, n = annotationRefs.length; i < n; ++i) {
var annotationRef = annotationRefs[i]; var annotationRef = annotationRefs[i];
var annotation = Annotation.fromRef(this.xref, annotationRef); var annotation = Annotation.fromRef(this.xref, annotationRef);
@ -11462,10 +11454,6 @@ var Annotation = (function AnnotationClosure() {
} }
}, },
getData: function Annotation_getData() {
return this.data;
},
isInvisible: function Annotation_isInvisible() { isInvisible: function Annotation_isInvisible() {
var data = this.data; var data = this.data;
if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) { if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {

13
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.320'; PDFJS.version = '1.1.322';
PDFJS.build = 'a58393f'; PDFJS.build = 'd3e90cf';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -2262,13 +2262,10 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
* annotation objects. * annotation objects.
*/ */
getAnnotations: function PDFPageProxy_getAnnotations() { getAnnotations: function PDFPageProxy_getAnnotations() {
if (this.annotationsPromise) { if (!this.annotationsPromise) {
return this.annotationsPromise; this.annotationsPromise = this.transport.getAnnotations(this.pageIndex);
} }
return this.annotationsPromise;
var promise = this.transport.getAnnotations(this.pageIndex);
this.annotationsPromise = promise;
return promise;
}, },
/** /**
* Begins the process of rendering a page to the desired context. * Begins the process of rendering a page to the desired context.

17
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.320'; PDFJS.version = '1.1.322';
PDFJS.build = 'a58393f'; PDFJS.build = 'd3e90cf';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -2667,11 +2667,6 @@ var Page = (function PageClosure() {
return shadow(this, 'view', cropBox); return shadow(this, 'view', cropBox);
}, },
get annotationRefs() {
return shadow(this, 'annotationRefs',
this.getInheritedPageProp('Annots'));
},
get rotate() { get rotate() {
var rotate = this.getInheritedPageProp('Rotate') || 0; var rotate = this.getInheritedPageProp('Rotate') || 0;
// Normalize rotation so it's a multiple of 90 and between 0 and 270 // Normalize rotation so it's a multiple of 90 and between 0 and 270
@ -2817,14 +2812,14 @@ 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) {
annotationsData.push(annotations[i].getData()); annotationsData.push(annotations[i].data);
} }
return annotationsData; return annotationsData;
}, },
get annotations() { get annotations() {
var annotations = []; var annotations = [];
var annotationRefs = (this.annotationRefs || []); var annotationRefs = this.getInheritedPageProp('Annots') || [];
for (var i = 0, n = annotationRefs.length; i < n; ++i) { for (var i = 0, n = annotationRefs.length; i < n; ++i) {
var annotationRef = annotationRefs[i]; var annotationRef = annotationRefs[i];
var annotation = Annotation.fromRef(this.xref, annotationRef); var annotation = Annotation.fromRef(this.xref, annotationRef);
@ -5058,10 +5053,6 @@ var Annotation = (function AnnotationClosure() {
} }
}, },
getData: function Annotation_getData() {
return this.data;
},
isInvisible: function Annotation_isInvisible() { isInvisible: function Annotation_isInvisible() {
var data = this.data; var data = this.data;
if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) { if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.320", "version": "1.1.322",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save