소스 검색

PDF.js version 1.0.1137

Pdf Bot 10 년 전
부모
커밋
b7b2f9ee0a
5개의 변경된 파일30개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 1
      bower.json
  2. 13 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 13 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 13 - 3
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.1135';
-PDFJS.build = 'ccf05c7';
+PDFJS.version = '1.0.1137';
+PDFJS.build = 'fb82000';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -23591,7 +23591,11 @@ var Font = (function FontClosure() {
           var offset = font.getInt32() >>> 0;
           var useTable = false;
 
-          if (platformId === 1 && encodingId === 0) {
+          if (platformId === 0 && encodingId === 0) {
+            useTable = true;
+            // Continue the loop since there still may be a higher priority
+            // table.
+          } else if (platformId === 1 && encodingId === 0) {
             useTable = true;
             // Continue the loop since there still may be a higher priority
             // table.
@@ -24564,6 +24568,12 @@ var Font = (function FontClosure() {
               }
             }
           }
+        } else if (cmapPlatformId === 0 && cmapEncodingId === 0) {
+          // Default Unicode semantics, use the charcodes as is.
+          for (i = 0; i < cmapMappingsLength; ++i) {
+            charCodeToGlyphId[cmapMappings[i].charCode] =
+              cmapMappings[i].glyphId;
+          }
         } else {
           // For (3, 0) cmap tables:
           // The charcode key being stored in charCodeToGlyphId is the lower

+ 2 - 2
build/pdf.js

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

+ 13 - 3
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.1135';
-PDFJS.build = 'ccf05c7';
+PDFJS.version = '1.0.1137';
+PDFJS.build = 'fb82000';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -17266,7 +17266,11 @@ var Font = (function FontClosure() {
           var offset = font.getInt32() >>> 0;
           var useTable = false;
 
-          if (platformId === 1 && encodingId === 0) {
+          if (platformId === 0 && encodingId === 0) {
+            useTable = true;
+            // Continue the loop since there still may be a higher priority
+            // table.
+          } else if (platformId === 1 && encodingId === 0) {
             useTable = true;
             // Continue the loop since there still may be a higher priority
             // table.
@@ -18239,6 +18243,12 @@ var Font = (function FontClosure() {
               }
             }
           }
+        } else if (cmapPlatformId === 0 && cmapEncodingId === 0) {
+          // Default Unicode semantics, use the charcodes as is.
+          for (i = 0; i < cmapMappingsLength; ++i) {
+            charCodeToGlyphId[cmapMappings[i].charCode] =
+              cmapMappings[i].glyphId;
+          }
         } else {
           // For (3, 0) cmap tables:
           // The charcode key being stored in charCodeToGlyphId is the lower

+ 1 - 1
package.json

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