Browse Source

PDF.js version 1.3.90 - See mozilla/pdf.js@a1aec826eaecdb32b3442cb33488944d8ddc0b3b

master v1.3.90
Pdf Bot 9 years ago
parent
commit
38f65dba9f
  1. 2
      bower.json
  2. 19
      build/pdf.combined.js
  3. 19
      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.3.88", "version": "1.3.90",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

19
build/pdf.combined.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.88'; PDFJS.version = '1.3.90';
PDFJS.build = '1b5940e'; PDFJS.build = 'a1aec82';
(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
@ -7239,13 +7239,8 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
return container; return container;
} }
function getHtmlElementForTextWidgetAnnotation(item, page) { function getHtmlElementForTextWidgetAnnotation(item, page, viewport) {
var element = document.createElement('div'); var container = getContainer(item, page, viewport);
var width = item.rect[2] - item.rect[0];
var height = item.rect[3] - item.rect[1];
element.style.width = width + 'px';
element.style.height = height + 'px';
element.style.display = 'table';
var content = document.createElement('div'); var content = document.createElement('div');
content.textContent = item.fieldValue; content.textContent = item.fieldValue;
@ -7258,9 +7253,9 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
page.commonObjs.getData(item.fontRefName) : null; page.commonObjs.getData(item.fontRefName) : null;
setTextStyles(content, item, fontObj); setTextStyles(content, item, fontObj);
element.appendChild(content); container.appendChild(content);
return element; return container;
} }
function getHtmlElementForTextAnnotation(item, page, viewport) { function getHtmlElementForTextAnnotation(item, page, viewport) {
@ -7429,7 +7424,7 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
function getHtmlElement(data, page, viewport, linkService) { function getHtmlElement(data, page, viewport, linkService) {
switch (data.annotationType) { switch (data.annotationType) {
case AnnotationType.WIDGET: case AnnotationType.WIDGET:
return getHtmlElementForTextWidgetAnnotation(data, page); return getHtmlElementForTextWidgetAnnotation(data, page, viewport);
case AnnotationType.TEXT: case AnnotationType.TEXT:
return getHtmlElementForTextAnnotation(data, page, viewport); return getHtmlElementForTextAnnotation(data, page, viewport);
case AnnotationType.LINK: case AnnotationType.LINK:

19
build/pdf.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.88'; PDFJS.version = '1.3.90';
PDFJS.build = '1b5940e'; PDFJS.build = 'a1aec82';
(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
@ -7298,13 +7298,8 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
return container; return container;
} }
function getHtmlElementForTextWidgetAnnotation(item, page) { function getHtmlElementForTextWidgetAnnotation(item, page, viewport) {
var element = document.createElement('div'); var container = getContainer(item, page, viewport);
var width = item.rect[2] - item.rect[0];
var height = item.rect[3] - item.rect[1];
element.style.width = width + 'px';
element.style.height = height + 'px';
element.style.display = 'table';
var content = document.createElement('div'); var content = document.createElement('div');
content.textContent = item.fieldValue; content.textContent = item.fieldValue;
@ -7317,9 +7312,9 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
page.commonObjs.getData(item.fontRefName) : null; page.commonObjs.getData(item.fontRefName) : null;
setTextStyles(content, item, fontObj); setTextStyles(content, item, fontObj);
element.appendChild(content); container.appendChild(content);
return element; return container;
} }
function getHtmlElementForTextAnnotation(item, page, viewport) { function getHtmlElementForTextAnnotation(item, page, viewport) {
@ -7488,7 +7483,7 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
function getHtmlElement(data, page, viewport, linkService) { function getHtmlElement(data, page, viewport, linkService) {
switch (data.annotationType) { switch (data.annotationType) {
case AnnotationType.WIDGET: case AnnotationType.WIDGET:
return getHtmlElementForTextWidgetAnnotation(data, page); return getHtmlElementForTextWidgetAnnotation(data, page, viewport);
case AnnotationType.TEXT: case AnnotationType.TEXT:
return getHtmlElementForTextAnnotation(data, page, viewport); return getHtmlElementForTextAnnotation(data, page, viewport);
case AnnotationType.LINK: case AnnotationType.LINK:

4
build/pdf.worker.js vendored

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.88'; PDFJS.version = '1.3.90';
PDFJS.build = '1b5940e'; PDFJS.build = 'a1aec82';
(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

2
package.json

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