Browse Source

PDF.js version 1.1.256

master v1.1.256
Pdf Bot 10 years ago
parent
commit
e7ef08d9e0
  1. 2
      bower.json
  2. 26
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 26
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

26
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.254'; PDFJS.version = '1.1.256';
PDFJS.build = '56e3a66'; PDFJS.build = '9e08737';
(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
@ -11891,21 +11891,9 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
return TextWidgetAnnotation; return TextWidgetAnnotation;
})(); })();
var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
function InteractiveAnnotation(params) {
Annotation.call(this, params);
this.data.hasHtml = true;
}
Util.inherit(InteractiveAnnotation, Annotation, { });
return InteractiveAnnotation;
})();
var TextAnnotation = (function TextAnnotationClosure() { var TextAnnotation = (function TextAnnotationClosure() {
function TextAnnotation(params) { function TextAnnotation(params) {
InteractiveAnnotation.call(this, params); Annotation.call(this, params);
var dict = params.dict; var dict = params.dict;
var data = this.data; var data = this.data;
@ -11915,6 +11903,7 @@ var TextAnnotation = (function TextAnnotationClosure() {
data.annotationType = AnnotationType.TEXT; data.annotationType = AnnotationType.TEXT;
data.content = stringToPDFString(content || ''); data.content = stringToPDFString(content || '');
data.title = stringToPDFString(title || ''); data.title = stringToPDFString(title || '');
data.hasHtml = true;
if (data.hasAppearance) { if (data.hasAppearance) {
data.name = 'NoIcon'; data.name = 'NoIcon';
@ -11929,18 +11918,19 @@ var TextAnnotation = (function TextAnnotationClosure() {
} }
} }
Util.inherit(TextAnnotation, InteractiveAnnotation, { }); Util.inherit(TextAnnotation, Annotation, { });
return TextAnnotation; return TextAnnotation;
})(); })();
var LinkAnnotation = (function LinkAnnotationClosure() { var LinkAnnotation = (function LinkAnnotationClosure() {
function LinkAnnotation(params) { function LinkAnnotation(params) {
InteractiveAnnotation.call(this, params); Annotation.call(this, params);
var dict = params.dict; var dict = params.dict;
var data = this.data; var data = this.data;
data.annotationType = AnnotationType.LINK; data.annotationType = AnnotationType.LINK;
data.hasHtml = true;
var action = dict.get('A'); var action = dict.get('A');
if (action && isDict(action)) { if (action && isDict(action)) {
@ -12004,7 +11994,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
return url; return url;
} }
Util.inherit(LinkAnnotation, InteractiveAnnotation, { }); Util.inherit(LinkAnnotation, Annotation, { });
return LinkAnnotation; return LinkAnnotation;
})(); })();

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.254'; PDFJS.version = '1.1.256';
PDFJS.build = '56e3a66'; PDFJS.build = '9e08737';
(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

26
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.254'; PDFJS.version = '1.1.256';
PDFJS.build = '56e3a66'; PDFJS.build = '9e08737';
(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
@ -5492,21 +5492,9 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
return TextWidgetAnnotation; return TextWidgetAnnotation;
})(); })();
var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
function InteractiveAnnotation(params) {
Annotation.call(this, params);
this.data.hasHtml = true;
}
Util.inherit(InteractiveAnnotation, Annotation, { });
return InteractiveAnnotation;
})();
var TextAnnotation = (function TextAnnotationClosure() { var TextAnnotation = (function TextAnnotationClosure() {
function TextAnnotation(params) { function TextAnnotation(params) {
InteractiveAnnotation.call(this, params); Annotation.call(this, params);
var dict = params.dict; var dict = params.dict;
var data = this.data; var data = this.data;
@ -5516,6 +5504,7 @@ var TextAnnotation = (function TextAnnotationClosure() {
data.annotationType = AnnotationType.TEXT; data.annotationType = AnnotationType.TEXT;
data.content = stringToPDFString(content || ''); data.content = stringToPDFString(content || '');
data.title = stringToPDFString(title || ''); data.title = stringToPDFString(title || '');
data.hasHtml = true;
if (data.hasAppearance) { if (data.hasAppearance) {
data.name = 'NoIcon'; data.name = 'NoIcon';
@ -5530,18 +5519,19 @@ var TextAnnotation = (function TextAnnotationClosure() {
} }
} }
Util.inherit(TextAnnotation, InteractiveAnnotation, { }); Util.inherit(TextAnnotation, Annotation, { });
return TextAnnotation; return TextAnnotation;
})(); })();
var LinkAnnotation = (function LinkAnnotationClosure() { var LinkAnnotation = (function LinkAnnotationClosure() {
function LinkAnnotation(params) { function LinkAnnotation(params) {
InteractiveAnnotation.call(this, params); Annotation.call(this, params);
var dict = params.dict; var dict = params.dict;
var data = this.data; var data = this.data;
data.annotationType = AnnotationType.LINK; data.annotationType = AnnotationType.LINK;
data.hasHtml = true;
var action = dict.get('A'); var action = dict.get('A');
if (action && isDict(action)) { if (action && isDict(action)) {
@ -5605,7 +5595,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
return url; return url;
} }
Util.inherit(LinkAnnotation, InteractiveAnnotation, { }); Util.inherit(LinkAnnotation, Annotation, { });
return LinkAnnotation; return LinkAnnotation;
})(); })();

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.254", "version": "1.1.256",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save