Browse Source

PDF.js version 1.5.355 - See mozilla/pdf.js@336b26a39dc304fc589d0cfb85c52e7d4ee85112

master v1.5.355
Pdf Bot 9 years ago
parent
commit
d8a4be3243
  1. 2
      bower.json
  2. 19
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 19
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

19
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.353'; var pdfjsVersion = '1.5.355';
var pdfjsBuild = 'f4b2ad4'; var pdfjsBuild = '336b26a';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -48462,13 +48462,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
// Determine the annotation's subtype. // Determine the annotation's subtype.
var subtype = dict.get('Subtype'); var subtype = dict.get('Subtype');
subtype = isName(subtype) ? subtype.name : ''; subtype = isName(subtype) ? subtype.name : null;
// Return the right annotation object based on the subtype and field type. // Return the right annotation object based on the subtype and field type.
var parameters = { var parameters = {
xref: xref, xref: xref,
dict: dict, dict: dict,
ref: ref ref: ref,
subtype: subtype,
}; };
switch (subtype) { switch (subtype) {
@ -48504,8 +48505,12 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
return new FileAttachmentAnnotation(parameters); return new FileAttachmentAnnotation(parameters);
default: default:
warn('Unimplemented annotation type "' + subtype + '", ' + if (!subtype) {
'falling back to base annotation'); warn('Annotation is missing the required /Subtype.');
} else {
warn('Unimplemented annotation type "' + subtype + '", ' +
'falling back to base annotation.');
}
return new Annotation(parameters); return new Annotation(parameters);
} }
} }
@ -48569,7 +48574,7 @@ var Annotation = (function AnnotationClosure() {
// Expose public properties using a data object. // Expose public properties using a data object.
this.data = {}; this.data = {};
this.data.id = params.ref.toString(); this.data.id = params.ref.toString();
this.data.subtype = dict.get('Subtype').name; this.data.subtype = params.subtype;
this.data.annotationFlags = this.flags; this.data.annotationFlags = this.flags;
this.data.rect = this.rectangle; this.data.rect = this.rectangle;
this.data.color = this.color; this.data.color = this.color;

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.353'; var pdfjsVersion = '1.5.355';
var pdfjsBuild = 'f4b2ad4'; var pdfjsBuild = '336b26a';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

19
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.353'; var pdfjsVersion = '1.5.355';
var pdfjsBuild = 'f4b2ad4'; var pdfjsBuild = '336b26a';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -40116,13 +40116,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
// Determine the annotation's subtype. // Determine the annotation's subtype.
var subtype = dict.get('Subtype'); var subtype = dict.get('Subtype');
subtype = isName(subtype) ? subtype.name : ''; subtype = isName(subtype) ? subtype.name : null;
// Return the right annotation object based on the subtype and field type. // Return the right annotation object based on the subtype and field type.
var parameters = { var parameters = {
xref: xref, xref: xref,
dict: dict, dict: dict,
ref: ref ref: ref,
subtype: subtype,
}; };
switch (subtype) { switch (subtype) {
@ -40158,8 +40159,12 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
return new FileAttachmentAnnotation(parameters); return new FileAttachmentAnnotation(parameters);
default: default:
warn('Unimplemented annotation type "' + subtype + '", ' + if (!subtype) {
'falling back to base annotation'); warn('Annotation is missing the required /Subtype.');
} else {
warn('Unimplemented annotation type "' + subtype + '", ' +
'falling back to base annotation.');
}
return new Annotation(parameters); return new Annotation(parameters);
} }
} }
@ -40223,7 +40228,7 @@ var Annotation = (function AnnotationClosure() {
// Expose public properties using a data object. // Expose public properties using a data object.
this.data = {}; this.data = {};
this.data.id = params.ref.toString(); this.data.id = params.ref.toString();
this.data.subtype = dict.get('Subtype').name; this.data.subtype = params.subtype;
this.data.annotationFlags = this.flags; this.data.annotationFlags = this.flags;
this.data.rect = this.rectangle; this.data.rect = this.rectangle;
this.data.color = this.color; this.data.color = this.color;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.5.353", "version": "1.5.355",
"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