Browse Source

PDF.js version 1.5.450 - See mozilla/pdf.js@6b05cfd1b83b6de22dc4094d934e70fc72c96ae7

master v1.5.450
Pdf Bot 9 years ago
parent
commit
f47d09f3d2
  1. 2
      bower.json
  2. 42
      build/pdf.combined.js
  3. 42
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

42
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.448'; var pdfjsVersion = '1.5.450';
var pdfjsBuild = 'bf6f5d1'; var pdfjsBuild = '6b05cfd';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -24108,6 +24108,7 @@ exports.LZWStream = LZWStream;
var AnnotationBorderStyleType = sharedUtil.AnnotationBorderStyleType; var AnnotationBorderStyleType = sharedUtil.AnnotationBorderStyleType;
var AnnotationType = sharedUtil.AnnotationType; var AnnotationType = sharedUtil.AnnotationType;
var isInt = sharedUtil.isInt;
var Util = sharedUtil.Util; var Util = sharedUtil.Util;
var addLinkAttributes = displayDOMUtils.addLinkAttributes; var addLinkAttributes = displayDOMUtils.addLinkAttributes;
var LinkTarget = displayDOMUtils.LinkTarget; var LinkTarget = displayDOMUtils.LinkTarget;
@ -24506,6 +24507,8 @@ var WidgetAnnotationElement = (function WidgetAnnotationElementClosure() {
*/ */
var TextWidgetAnnotationElement = ( var TextWidgetAnnotationElement = (
function TextWidgetAnnotationElementClosure() { function TextWidgetAnnotationElementClosure() {
var TEXT_ALIGNMENT = ['left', 'center', 'right'];
function TextWidgetAnnotationElement(parameters) { function TextWidgetAnnotationElement(parameters) {
WidgetAnnotationElement.call(this, parameters); WidgetAnnotationElement.call(this, parameters);
} }
@ -24521,26 +24524,33 @@ var TextWidgetAnnotationElement = (
render: function TextWidgetAnnotationElement_render() { render: function TextWidgetAnnotationElement_render() {
this.container.className = 'textWidgetAnnotation'; this.container.className = 'textWidgetAnnotation';
var element = null;
if (this.renderInteractiveForms) { if (this.renderInteractiveForms) {
var input = document.createElement('input'); element = document.createElement('input');
input.type = 'text'; element.type = 'text';
input.value = this.data.fieldValue; element.value = this.data.fieldValue;
this.container.appendChild(input); if (isInt(this.data.maxLen)) {
element.maxLength = this.data.maxLen;
}
} else { } else {
var content = document.createElement('div'); element = document.createElement('div');
content.textContent = this.data.fieldValue; element.textContent = this.data.fieldValue;
var textAlignment = this.data.textAlignment; element.style.verticalAlign = 'middle';
content.style.textAlign = ['left', 'center', 'right'][textAlignment]; element.style.display = 'table-cell';
content.style.verticalAlign = 'middle';
content.style.display = 'table-cell';
var font = (this.data.fontRefName ? var font = null;
this.page.commonObjs.getData(this.data.fontRefName) : null); if (this.data.fontRefName) {
this._setTextStyle(content, font); font = this.page.commonObjs.getData(this.data.fontRefName);
}
this._setTextStyle(element, font);
}
this.container.appendChild(content); if (isInt(this.data.textAlignment)) {
element.style.textAlign = TEXT_ALIGNMENT[this.data.textAlignment];
} }
this.container.appendChild(element);
return this.container; return this.container;
}, },

42
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.448'; var pdfjsVersion = '1.5.450';
var pdfjsBuild = 'bf6f5d1'; var pdfjsBuild = '6b05cfd';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -4302,6 +4302,7 @@ exports.SVGGraphics = SVGGraphics;
var AnnotationBorderStyleType = sharedUtil.AnnotationBorderStyleType; var AnnotationBorderStyleType = sharedUtil.AnnotationBorderStyleType;
var AnnotationType = sharedUtil.AnnotationType; var AnnotationType = sharedUtil.AnnotationType;
var isInt = sharedUtil.isInt;
var Util = sharedUtil.Util; var Util = sharedUtil.Util;
var addLinkAttributes = displayDOMUtils.addLinkAttributes; var addLinkAttributes = displayDOMUtils.addLinkAttributes;
var LinkTarget = displayDOMUtils.LinkTarget; var LinkTarget = displayDOMUtils.LinkTarget;
@ -4700,6 +4701,8 @@ var WidgetAnnotationElement = (function WidgetAnnotationElementClosure() {
*/ */
var TextWidgetAnnotationElement = ( var TextWidgetAnnotationElement = (
function TextWidgetAnnotationElementClosure() { function TextWidgetAnnotationElementClosure() {
var TEXT_ALIGNMENT = ['left', 'center', 'right'];
function TextWidgetAnnotationElement(parameters) { function TextWidgetAnnotationElement(parameters) {
WidgetAnnotationElement.call(this, parameters); WidgetAnnotationElement.call(this, parameters);
} }
@ -4715,26 +4718,33 @@ var TextWidgetAnnotationElement = (
render: function TextWidgetAnnotationElement_render() { render: function TextWidgetAnnotationElement_render() {
this.container.className = 'textWidgetAnnotation'; this.container.className = 'textWidgetAnnotation';
var element = null;
if (this.renderInteractiveForms) { if (this.renderInteractiveForms) {
var input = document.createElement('input'); element = document.createElement('input');
input.type = 'text'; element.type = 'text';
input.value = this.data.fieldValue; element.value = this.data.fieldValue;
this.container.appendChild(input); if (isInt(this.data.maxLen)) {
element.maxLength = this.data.maxLen;
}
} else { } else {
var content = document.createElement('div'); element = document.createElement('div');
content.textContent = this.data.fieldValue; element.textContent = this.data.fieldValue;
var textAlignment = this.data.textAlignment; element.style.verticalAlign = 'middle';
content.style.textAlign = ['left', 'center', 'right'][textAlignment]; element.style.display = 'table-cell';
content.style.verticalAlign = 'middle';
content.style.display = 'table-cell';
var font = (this.data.fontRefName ? var font = null;
this.page.commonObjs.getData(this.data.fontRefName) : null); if (this.data.fontRefName) {
this._setTextStyle(content, font); font = this.page.commonObjs.getData(this.data.fontRefName);
}
this._setTextStyle(element, font);
}
this.container.appendChild(content); if (isInt(this.data.textAlignment)) {
element.style.textAlign = TEXT_ALIGNMENT[this.data.textAlignment];
} }
this.container.appendChild(element);
return this.container; return this.container;
}, },

4
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.448'; var pdfjsVersion = '1.5.450';
var pdfjsBuild = 'bf6f5d1'; var pdfjsBuild = '6b05cfd';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

2
package.json

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

Loading…
Cancel
Save