Browse Source

PDF.js version 1.3.148 - See mozilla/pdf.js@4e9ea35eee7d01a178792fde3a65142ed7cc02b9

master v1.3.148
Pdf Bot 9 years ago
parent
commit
05a4d85980
  1. 2
      bower.json
  2. 53
      build/pdf.combined.js
  3. 34
      build/pdf.js
  4. 23
      build/pdf.worker.js
  5. 2
      package.json
  6. 1
      web/pdf_viewer.css

2
bower.json

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

53
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {}; typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.146'; PDFJS.version = '1.3.148';
PDFJS.build = '8ed3692'; PDFJS.build = '4e9ea35';
(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
@ -15566,6 +15566,9 @@ AnnotationElementFactory.prototype =
case AnnotationType.POPUP: case AnnotationType.POPUP:
return new PopupAnnotationElement(parameters); return new PopupAnnotationElement(parameters);
case AnnotationType.HIGHLIGHT:
return new HighlightAnnotationElement(parameters);
case AnnotationType.UNDERLINE: case AnnotationType.UNDERLINE:
return new UnderlineAnnotationElement(parameters); return new UnderlineAnnotationElement(parameters);
@ -16103,6 +16106,33 @@ var PopupElement = (function PopupElementClosure() {
return PopupElement; return PopupElement;
})(); })();
/**
* @class
* @alias HighlightAnnotationElement
*/
var HighlightAnnotationElement = (
function HighlightAnnotationElementClosure() {
function HighlightAnnotationElement(parameters) {
AnnotationElement.call(this, parameters);
}
Util.inherit(HighlightAnnotationElement, AnnotationElement, {
/**
* Render the highlight annotation's HTML element in the empty container.
*
* @public
* @memberof HighlightAnnotationElement
* @returns {HTMLSectionElement}
*/
render: function HighlightAnnotationElement_render() {
this.container.className = 'highlightAnnotation';
return this.container;
}
});
return HighlightAnnotationElement;
})();
/** /**
* @class * @class
* @alias UnderlineAnnotationElement * @alias UnderlineAnnotationElement
@ -46664,6 +46694,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
case 'Popup': case 'Popup':
return new PopupAnnotation(parameters); return new PopupAnnotation(parameters);
case 'Highlight':
return new HighlightAnnotation(parameters);
case 'Underline': case 'Underline':
return new UnderlineAnnotation(parameters); return new UnderlineAnnotation(parameters);
@ -47363,6 +47396,22 @@ var PopupAnnotation = (function PopupAnnotationClosure() {
return PopupAnnotation; return PopupAnnotation;
})(); })();
var HighlightAnnotation = (function HighlightAnnotationClosure() {
function HighlightAnnotation(parameters) {
Annotation.call(this, parameters);
this.data.annotationType = AnnotationType.HIGHLIGHT;
this.data.hasHtml = true;
// PDF viewers completely ignore any border styles.
this.data.borderStyle.setWidth(0);
}
Util.inherit(HighlightAnnotation, Annotation, {});
return HighlightAnnotation;
})();
var UnderlineAnnotation = (function UnderlineAnnotationClosure() { var UnderlineAnnotation = (function UnderlineAnnotationClosure() {
function UnderlineAnnotation(parameters) { function UnderlineAnnotation(parameters) {
Annotation.call(this, parameters); Annotation.call(this, parameters);

34
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {}; typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.146'; PDFJS.version = '1.3.148';
PDFJS.build = '8ed3692'; PDFJS.build = '4e9ea35';
(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.HIGHLIGHT:
return new HighlightAnnotationElement(parameters);
case AnnotationType.UNDERLINE: case AnnotationType.UNDERLINE:
return new UnderlineAnnotationElement(parameters); return new UnderlineAnnotationElement(parameters);
@ -2383,6 +2386,33 @@ var PopupElement = (function PopupElementClosure() {
return PopupElement; return PopupElement;
})(); })();
/**
* @class
* @alias HighlightAnnotationElement
*/
var HighlightAnnotationElement = (
function HighlightAnnotationElementClosure() {
function HighlightAnnotationElement(parameters) {
AnnotationElement.call(this, parameters);
}
Util.inherit(HighlightAnnotationElement, AnnotationElement, {
/**
* Render the highlight annotation's HTML element in the empty container.
*
* @public
* @memberof HighlightAnnotationElement
* @returns {HTMLSectionElement}
*/
render: function HighlightAnnotationElement_render() {
this.container.className = 'highlightAnnotation';
return this.container;
}
});
return HighlightAnnotationElement;
})();
/** /**
* @class * @class
* @alias UnderlineAnnotationElement * @alias UnderlineAnnotationElement

23
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {}; typeof global !== 'undefined' ? global : this).PDFJS = {};
} }
PDFJS.version = '1.3.146'; PDFJS.version = '1.3.148';
PDFJS.build = '8ed3692'; PDFJS.build = '4e9ea35';
(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
@ -38882,6 +38882,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ {
case 'Popup': case 'Popup':
return new PopupAnnotation(parameters); return new PopupAnnotation(parameters);
case 'Highlight':
return new HighlightAnnotation(parameters);
case 'Underline': case 'Underline':
return new UnderlineAnnotation(parameters); return new UnderlineAnnotation(parameters);
@ -39581,6 +39584,22 @@ var PopupAnnotation = (function PopupAnnotationClosure() {
return PopupAnnotation; return PopupAnnotation;
})(); })();
var HighlightAnnotation = (function HighlightAnnotationClosure() {
function HighlightAnnotation(parameters) {
Annotation.call(this, parameters);
this.data.annotationType = AnnotationType.HIGHLIGHT;
this.data.hasHtml = true;
// PDF viewers completely ignore any border styles.
this.data.borderStyle.setWidth(0);
}
Util.inherit(HighlightAnnotation, Annotation, {});
return HighlightAnnotation;
})();
var UnderlineAnnotation = (function UnderlineAnnotationClosure() { var UnderlineAnnotation = (function UnderlineAnnotationClosure() {
function UnderlineAnnotation(parameters) { function UnderlineAnnotation(parameters) {
Annotation.call(this, parameters); Annotation.call(this, parameters);

2
package.json

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

1
web/pdf_viewer.css

@ -138,6 +138,7 @@
padding-top: 0.2em; padding-top: 0.2em;
} }
.annotationLayer .highlightAnnotation,
.annotationLayer .underlineAnnotation, .annotationLayer .underlineAnnotation,
.annotationLayer .squigglyAnnotation, .annotationLayer .squigglyAnnotation,
.annotationLayer .strikeoutAnnotation { .annotationLayer .strikeoutAnnotation {

Loading…
Cancel
Save