Pārlūkot izejas kodu

PDF.js version 1.0.772

Yury Delendik 10 gadi atpakaļ
vecāks
revīzija
ee211e20f8
5 mainītis faili ar 26 papildinājumiem un 10 dzēšanām
  1. 1 1
      bower.json
  2. 11 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 11 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.770",
+  "version": "1.0.772",
   "keywords": [
     "Mozilla",
     "pdf",

+ 11 - 3
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.770';
-PDFJS.build = '74d02c3';
+PDFJS.version = '1.0.772';
+PDFJS.build = '403b7df';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -23975,7 +23975,15 @@ var Font = (function FontClosure() {
         // where the the font is symbolic and it has an encoding.
         if (hasEncoding &&
             (cmapPlatformId === 3 && cmapEncodingId === 1 ||
-             cmapPlatformId === 1 && cmapEncodingId === 0)) {
+             cmapPlatformId === 1 && cmapEncodingId === 0) ||
+            (cmapPlatformId === -1 && cmapEncodingId === -1 && // Temporary hack
+             !!Encodings[properties.baseEncodingName])) {      // Temporary hack
+          // When no preferred cmap table was found and |baseEncodingName| is
+          // one of the predefined encodings, we seem to obtain a better
+          // |charCodeToGlyphId| map from the code below (fixes bug 1057544).
+          // TODO: Note that this is a hack which should be removed as soon as
+          //       we have proper support for more exotic cmap tables.
+
           var baseEncoding = [];
           if (properties.baseEncodingName === 'MacRomanEncoding' ||
               properties.baseEncodingName === 'WinAnsiEncoding') {

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.770';
-PDFJS.build = '74d02c3';
+PDFJS.version = '1.0.772';
+PDFJS.build = '403b7df';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 11 - 3
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.770';
-PDFJS.build = '74d02c3';
+PDFJS.version = '1.0.772';
+PDFJS.build = '403b7df';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -17940,7 +17940,15 @@ var Font = (function FontClosure() {
         // where the the font is symbolic and it has an encoding.
         if (hasEncoding &&
             (cmapPlatformId === 3 && cmapEncodingId === 1 ||
-             cmapPlatformId === 1 && cmapEncodingId === 0)) {
+             cmapPlatformId === 1 && cmapEncodingId === 0) ||
+            (cmapPlatformId === -1 && cmapEncodingId === -1 && // Temporary hack
+             !!Encodings[properties.baseEncodingName])) {      // Temporary hack
+          // When no preferred cmap table was found and |baseEncodingName| is
+          // one of the predefined encodings, we seem to obtain a better
+          // |charCodeToGlyphId| map from the code below (fixes bug 1057544).
+          // TODO: Note that this is a hack which should be removed as soon as
+          //       we have proper support for more exotic cmap tables.
+
           var baseEncoding = [];
           if (properties.baseEncodingName === 'MacRomanEncoding' ||
               properties.baseEncodingName === 'WinAnsiEncoding') {

+ 1 - 1
package.json

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