Browse Source

PDF.js version 1.1.143

Pdf Bot 10 years ago
parent
commit
c083b16818
5 changed files with 22 additions and 12 deletions
  1. 1 1
      bower.json
  2. 9 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 9 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 9 - 4
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.140';
-PDFJS.build = '9deae0e';
+PDFJS.version = '1.1.143';
+PDFJS.build = '7da9626';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -23776,7 +23776,10 @@ var Font = (function FontClosure() {
           }
         }
 
-        if (!potentialTable) {
+        if (potentialTable) {
+          font.pos = start + potentialTable.offset;
+        }
+        if (!potentialTable || font.peekByte() === -1) {
           warn('Could not find a preferred cmap table.');
           return {
             platformId: -1,
@@ -23786,7 +23789,6 @@ var Font = (function FontClosure() {
           };
         }
 
-        font.pos = start + potentialTable.offset;
         var format = font.getUint16();
         var length = font.getUint16();
         var language = font.getUint16();
@@ -24221,6 +24223,9 @@ var Font = (function FontClosure() {
           default:
             warn('Unknown/unsupported post table version ' + version);
             valid = false;
+            if (properties.defaultEncoding) {
+              glyphNames = properties.defaultEncoding;
+            }
             break;
         }
         properties.glyphNames = glyphNames;

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.140';
-PDFJS.build = '9deae0e';
+PDFJS.version = '1.1.143';
+PDFJS.build = '7da9626';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 9 - 4
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.140';
-PDFJS.build = '9deae0e';
+PDFJS.version = '1.1.143';
+PDFJS.build = '7da9626';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -17423,7 +17423,10 @@ var Font = (function FontClosure() {
           }
         }
 
-        if (!potentialTable) {
+        if (potentialTable) {
+          font.pos = start + potentialTable.offset;
+        }
+        if (!potentialTable || font.peekByte() === -1) {
           warn('Could not find a preferred cmap table.');
           return {
             platformId: -1,
@@ -17433,7 +17436,6 @@ var Font = (function FontClosure() {
           };
         }
 
-        font.pos = start + potentialTable.offset;
         var format = font.getUint16();
         var length = font.getUint16();
         var language = font.getUint16();
@@ -17868,6 +17870,9 @@ var Font = (function FontClosure() {
           default:
             warn('Unknown/unsupported post table version ' + version);
             valid = false;
+            if (properties.defaultEncoding) {
+              glyphNames = properties.defaultEncoding;
+            }
             break;
         }
         properties.glyphNames = glyphNames;

+ 1 - 1
package.json

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