Browse Source

PDF.js version 1.1.515

Pdf Bot 9 years ago
parent
commit
5da85d4d3d
5 changed files with 26 additions and 10 deletions
  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.1.513",
+  "version": "1.1.515",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 11 - 3
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.513';
-PDFJS.build = '9332da3';
+PDFJS.version = '1.1.515';
+PDFJS.build = '3eaeacf';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -18582,7 +18582,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
         if (cmap instanceof IdentityCMap) {
           return new IdentityToUnicodeMap(0, 0xFFFF);
         }
-        var map = [];
+        var map = new Array(cmap.length);
         // Convert UTF-16BE
         // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
         // to iterate over all keys.
@@ -20195,6 +20195,10 @@ var CMap = (function CMapClosure() {
       out.length = 1;
     },
 
+    get length() {
+      return this._map.length;
+    },
+
     get isIdentityCMap() {
       if (!(this.name === 'Identity-H' || this.name === 'Identity-V')) {
         return false;
@@ -20271,6 +20275,10 @@ var IdentityCMap = (function IdentityCMapClosure() {
 
     readCharCode: CMap.prototype.readCharCode,
 
+    get length() {
+      return 0x10000;
+    },
+
     get isIdentityCMap() {
       error('should not access .isIdentityCMap');
     }

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.513';
-PDFJS.build = '9332da3';
+PDFJS.version = '1.1.515';
+PDFJS.build = '3eaeacf';
 
 (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.1.513';
-PDFJS.build = '9332da3';
+PDFJS.version = '1.1.515';
+PDFJS.build = '3eaeacf';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -12131,7 +12131,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
         if (cmap instanceof IdentityCMap) {
           return new IdentityToUnicodeMap(0, 0xFFFF);
         }
-        var map = [];
+        var map = new Array(cmap.length);
         // Convert UTF-16BE
         // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
         // to iterate over all keys.
@@ -13744,6 +13744,10 @@ var CMap = (function CMapClosure() {
       out.length = 1;
     },
 
+    get length() {
+      return this._map.length;
+    },
+
     get isIdentityCMap() {
       if (!(this.name === 'Identity-H' || this.name === 'Identity-V')) {
         return false;
@@ -13820,6 +13824,10 @@ var IdentityCMap = (function IdentityCMapClosure() {
 
     readCharCode: CMap.prototype.readCharCode,
 
+    get length() {
+      return 0x10000;
+    },
+
     get isIdentityCMap() {
       error('should not access .isIdentityCMap');
     }

+ 1 - 1
package.json

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