Browse Source

PDF.js version 1.3.135 - See mozilla/pdf.js@b32cdf58367a4a8adca061f675445cd5818d2722

master v1.3.135
Pdf Bot 9 years ago
parent
commit
d1d1a5ebdf
  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. 4
      web/pdf_viewer.css

2
bower.json

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

53
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -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 = @@ -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() { @@ -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 */ { @@ -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() { @@ -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;

34
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -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 = @@ -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() { @@ -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

23
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -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
@ -38853,6 +38853,9 @@ AnnotationFactory.prototype = /** @lends AnnotationFactory.prototype */ { @@ -38853,6 +38853,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');
@ -39543,6 +39546,22 @@ var PopupAnnotation = (function PopupAnnotationClosure() { @@ -39543,6 +39546,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;

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.3.133",
"version": "1.3.135",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

4
web/pdf_viewer.css

@ -138,6 +138,10 @@ @@ -138,6 +138,10 @@
padding-top: 0.2em;
}
.annotationLayer .underlineAnnotation {
cursor: pointer;
}
.pdfViewer .canvasWrapper {
overflow: hidden;
}

Loading…
Cancel
Save