From d8a4be32432e3a700e4ff05b625a9ff01a5635a6 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Mon, 25 Jul 2016 15:28:57 +0100 Subject: [PATCH] PDF.js version 1.5.355 - See mozilla/pdf.js@336b26a39dc304fc589d0cfb85c52e7d4ee85112 --- bower.json | 2 +- build/pdf.combined.js | 19 ++++++++++++------- build/pdf.js | 4 ++-- build/pdf.worker.js | 19 ++++++++++++------- package.json | 2 +- 5 files changed, 28 insertions(+), 18 deletions(-) diff --git a/bower.json b/bower.json index e89027287..0ae78080f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.353", + "version": "1.5.355", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 0874e50bb..0759cfa9a 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.353'; -var pdfjsBuild = 'f4b2ad4'; +var pdfjsVersion = '1.5.355'; +var pdfjsBuild = '336b26a'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -48462,13 +48462,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { // Determine the annotation's 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. var parameters = { xref: xref, dict: dict, - ref: ref + ref: ref, + subtype: subtype, }; switch (subtype) { @@ -48504,8 +48505,12 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { return new FileAttachmentAnnotation(parameters); default: - warn('Unimplemented annotation type "' + subtype + '", ' + - 'falling back to base annotation'); + if (!subtype) { + warn('Annotation is missing the required /Subtype.'); + } else { + warn('Unimplemented annotation type "' + subtype + '", ' + + 'falling back to base annotation.'); + } return new Annotation(parameters); } } @@ -48569,7 +48574,7 @@ var Annotation = (function AnnotationClosure() { // Expose public properties using a data object. this.data = {}; 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.rect = this.rectangle; this.data.color = this.color; diff --git a/build/pdf.js b/build/pdf.js index 7d588fff2..384d38a7c 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.353'; -var pdfjsBuild = 'f4b2ad4'; +var pdfjsVersion = '1.5.355'; +var pdfjsBuild = '336b26a'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index ab144ed34..d379cff15 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.353'; -var pdfjsBuild = 'f4b2ad4'; +var pdfjsVersion = '1.5.355'; +var pdfjsBuild = '336b26a'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -40116,13 +40116,14 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { // Determine the annotation's 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. var parameters = { xref: xref, dict: dict, - ref: ref + ref: ref, + subtype: subtype, }; switch (subtype) { @@ -40158,8 +40159,12 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { return new FileAttachmentAnnotation(parameters); default: - warn('Unimplemented annotation type "' + subtype + '", ' + - 'falling back to base annotation'); + if (!subtype) { + warn('Annotation is missing the required /Subtype.'); + } else { + warn('Unimplemented annotation type "' + subtype + '", ' + + 'falling back to base annotation.'); + } return new Annotation(parameters); } } @@ -40223,7 +40228,7 @@ var Annotation = (function AnnotationClosure() { // Expose public properties using a data object. this.data = {}; 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.rect = this.rectangle; this.data.color = this.color; diff --git a/package.json b/package.json index 921db1f9b..7f6ff9784 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.353", + "version": "1.5.355", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [