Ver Fonte

PDF.js version 1.0.1211

Pdf Bot há 10 anos atrás
pai
commit
117d115483
5 ficheiros alterados com 12 adições e 10 exclusões
  1. 1 1
      bower.json
  2. 4 3
      build/pdf.combined.js
  3. 4 3
      build/pdf.js
  4. 2 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 4 - 3
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.1209';
-PDFJS.build = 'f7b3852';
+PDFJS.version = '1.0.1211';
+PDFJS.build = '4e95362';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -6306,7 +6306,8 @@ var FontLoader = {
 
   nativeFontFaces: [],
 
-  isFontLoadingAPISupported: !isWorker && !!document.fonts,
+  isFontLoadingAPISupported: (!isWorker && typeof document !== 'undefined' &&
+                              !!document.fonts),
 
   addNativeFontFace: function fontLoader_addNativeFontFace(nativeFontFace) {
     this.nativeFontFaces.push(nativeFontFace);

+ 4 - 3
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.1209';
-PDFJS.build = 'f7b3852';
+PDFJS.version = '1.0.1211';
+PDFJS.build = '4e95362';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -6350,7 +6350,8 @@ var FontLoader = {
 
   nativeFontFaces: [],
 
-  isFontLoadingAPISupported: !isWorker && !!document.fonts,
+  isFontLoadingAPISupported: (!isWorker && typeof document !== 'undefined' &&
+                              !!document.fonts),
 
   addNativeFontFace: function fontLoader_addNativeFontFace(nativeFontFace) {
     this.nativeFontFaces.push(nativeFontFace);

+ 2 - 2
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.1209';
-PDFJS.build = 'f7b3852';
+PDFJS.version = '1.0.1211';
+PDFJS.build = '4e95362';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 1 - 1
package.json

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