|
@@ -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 pdfjsBuild = 'f4b2ad4';
|
|
|
|
|
|
+var pdfjsVersion = '1.5.355';
|
|
|
|
+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 + '", ' +
|
|
|
|
- '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);
|
|
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;
|