Bladeren bron

PDF.js version 1.0.492

Yury Delendik 10 jaren geleden
bovenliggende
commit
81bde27277
5 gewijzigde bestanden met toevoegingen van 16 en 14 verwijderingen
  1. 1 1
      bower.json
  2. 6 5
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 6 5
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 6 - 5
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.490';
-PDFJS.build = '5d4eebc';
+PDFJS.version = '1.0.492';
+PDFJS.build = '62e6265';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -28198,13 +28198,14 @@ var Font = (function FontClosure() {
               break;
             }
             var customNames = [];
+            var strBuf = [];
             while (font.pos < end) {
               var stringLength = font.getByte();
-              var string = '';
+              strBuf.length = stringLength;
               for (i = 0; i < stringLength; ++i) {
-                string += String.fromCharCode(font.getByte());
+                strBuf[i] = String.fromCharCode(font.getByte());
               }
-              customNames.push(string);
+              customNames.push(strBuf.join(''));
             }
             glyphNames = [];
             for (i = 0; i < numGlyphs; ++i) {

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.490';
-PDFJS.build = '5d4eebc';
+PDFJS.version = '1.0.492';
+PDFJS.build = '62e6265';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 6 - 5
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.490';
-PDFJS.build = '5d4eebc';
+PDFJS.version = '1.0.492';
+PDFJS.build = '62e6265';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -23344,13 +23344,14 @@ var Font = (function FontClosure() {
               break;
             }
             var customNames = [];
+            var strBuf = [];
             while (font.pos < end) {
               var stringLength = font.getByte();
-              var string = '';
+              strBuf.length = stringLength;
               for (i = 0; i < stringLength; ++i) {
-                string += String.fromCharCode(font.getByte());
+                strBuf[i] = String.fromCharCode(font.getByte());
               }
-              customNames.push(string);
+              customNames.push(strBuf.join(''));
             }
             glyphNames = [];
             for (i = 0; i < numGlyphs; ++i) {

+ 1 - 1
package.json

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