|
|
@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
typeof global !== 'undefined' ? global : this).PDFJS = {}; |
|
|
|
typeof global !== 'undefined' ? global : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.3.133'; |
|
|
|
PDFJS.version = '1.3.135'; |
|
|
|
PDFJS.build = '8558948'; |
|
|
|
PDFJS.build = 'b32cdf5'; |
|
|
|
|
|
|
|
|
|
|
|
(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
|
|
|
@ -1846,6 +1846,9 @@ AnnotationElementFactory.prototype = |
|
|
|
case AnnotationType.POPUP: |
|
|
|
case AnnotationType.POPUP: |
|
|
|
return new PopupAnnotationElement(parameters); |
|
|
|
return new PopupAnnotationElement(parameters); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case AnnotationType.UNDERLINE: |
|
|
|
|
|
|
|
return new UnderlineAnnotationElement(parameters); |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
throw new Error('Unimplemented annotation type "' + subtype + '"'); |
|
|
|
throw new Error('Unimplemented annotation type "' + subtype + '"'); |
|
|
|
} |
|
|
|
} |
|
|
@ -2374,6 +2377,33 @@ var PopupElement = (function PopupElementClosure() { |
|
|
|
return PopupElement; |
|
|
|
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 |
|
|
|
* @typedef {Object} AnnotationLayerParameters |
|
|
|
* @property {PageViewport} viewport |
|
|
|
* @property {PageViewport} viewport |
|
|
@ -46542,6 +46572,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { |
|
|
|
case 'Popup': |
|
|
|
case 'Popup': |
|
|
|
return new PopupAnnotation(parameters); |
|
|
|
return new PopupAnnotation(parameters); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'Underline': |
|
|
|
|
|
|
|
return new UnderlineAnnotation(parameters); |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
warn('Unimplemented annotation type "' + subtype + '", ' + |
|
|
|
warn('Unimplemented annotation type "' + subtype + '", ' + |
|
|
|
'falling back to base annotation'); |
|
|
|
'falling back to base annotation'); |
|
|
@ -47232,6 +47265,22 @@ var PopupAnnotation = (function PopupAnnotationClosure() { |
|
|
|
return PopupAnnotation; |
|
|
|
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.Annotation = Annotation; |
|
|
|
exports.AnnotationBorderStyle = AnnotationBorderStyle; |
|
|
|
exports.AnnotationBorderStyle = AnnotationBorderStyle; |
|
|
|
exports.AnnotationFactory = AnnotationFactory; |
|
|
|
exports.AnnotationFactory = AnnotationFactory; |
|
|
|