|
@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
typeof global !== 'undefined' ? global : this).PDFJS = {};
|
|
|
}
|
|
|
|
|
|
-PDFJS.version = '1.3.133';
|
|
|
-PDFJS.build = '8558948';
|
|
|
+PDFJS.version = '1.3.135';
|
|
|
+PDFJS.build = 'b32cdf5';
|
|
|
|
|
|
(function pdfjsWrapper() {
|
|
|
// Use strict in our context only - users might not want it
|
|
@@ -1846,6 +1846,9 @@ AnnotationElementFactory.prototype =
|
|
|
case AnnotationType.POPUP:
|
|
|
return new PopupAnnotationElement(parameters);
|
|
|
|
|
|
+ case AnnotationType.UNDERLINE:
|
|
|
+ return new UnderlineAnnotationElement(parameters);
|
|
|
+
|
|
|
default:
|
|
|
throw new Error('Unimplemented annotation type "' + subtype + '"');
|
|
|
}
|
|
@@ -2374,6 +2377,33 @@ var PopupElement = (function PopupElementClosure() {
|
|
|
return PopupElement;
|
|
|
})();
|
|
|
|
|
|
+/**
|
|
|
+ * @class
|
|
|
+ * @alias UnderlineAnnotationElement
|
|
|
+ */
|
|
|
+var UnderlineAnnotationElement = (
|
|
|
+ function UnderlineAnnotationElementClosure() {
|
|
|
+ function UnderlineAnnotationElement(parameters) {
|
|
|
+ AnnotationElement.call(this, parameters);
|
|
|
+ }
|
|
|
+
|
|
|
+ Util.inherit(UnderlineAnnotationElement, AnnotationElement, {
|
|
|
+ /**
|
|
|
+ * Render the underline annotation's HTML element in the empty container.
|
|
|
+ *
|
|
|
+ * @public
|
|
|
+ * @memberof UnderlineAnnotationElement
|
|
|
+ * @returns {HTMLSectionElement}
|
|
|
+ */
|
|
|
+ render: function UnderlineAnnotationElement_render() {
|
|
|
+ this.container.className = 'underlineAnnotation';
|
|
|
+ return this.container;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ return UnderlineAnnotationElement;
|
|
|
+})();
|
|
|
+
|
|
|
/**
|
|
|
* @typedef {Object} AnnotationLayerParameters
|
|
|
* @property {PageViewport} viewport
|
|
@@ -46542,6 +46572,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
|
|
|
case 'Popup':
|
|
|
return new PopupAnnotation(parameters);
|
|
|
|
|
|
+ case 'Underline':
|
|
|
+ return new UnderlineAnnotation(parameters);
|
|
|
+
|
|
|
default:
|
|
|
warn('Unimplemented annotation type "' + subtype + '", ' +
|
|
|
'falling back to base annotation');
|
|
@@ -47232,6 +47265,22 @@ var PopupAnnotation = (function PopupAnnotationClosure() {
|
|
|
return PopupAnnotation;
|
|
|
})();
|
|
|
|
|
|
+var UnderlineAnnotation = (function UnderlineAnnotationClosure() {
|
|
|
+ function UnderlineAnnotation(parameters) {
|
|
|
+ Annotation.call(this, parameters);
|
|
|
+
|
|
|
+ this.data.annotationType = AnnotationType.UNDERLINE;
|
|
|
+ this.data.hasHtml = true;
|
|
|
+
|
|
|
+ // PDF viewers completely ignore any border styles.
|
|
|
+ this.data.borderStyle.setWidth(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ Util.inherit(UnderlineAnnotation, Annotation, {});
|
|
|
+
|
|
|
+ return UnderlineAnnotation;
|
|
|
+})();
|
|
|
+
|
|
|
exports.Annotation = Annotation;
|
|
|
exports.AnnotationBorderStyle = AnnotationBorderStyle;
|
|
|
exports.AnnotationFactory = AnnotationFactory;
|