From 461c20681f1cb94c4ecab61570ffe884ade51065 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Sat, 5 Dec 2015 13:07:32 +0000 Subject: [PATCH] PDF.js version 1.3.58 - See mozilla/pdf.js@171f59c93563b2f92245ed254e4385ee36038912 --- bower.json | 2 +- build/pdf.combined.js | 8 ++++---- build/pdf.js | 4 ++-- build/pdf.worker.js | 8 ++++---- package.json | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index e51b00c8e..45078a611 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.56", + "version": "1.3.58", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 8048c9f04..ded02ad64 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.56'; -PDFJS.build = 'e2aca38'; +PDFJS.version = '1.3.58'; +PDFJS.build = '171f59c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -24032,7 +24032,7 @@ var IdentityToUnicodeMap = (function IdentityToUnicodeMapClosure() { }, charCodeOf: function (v) { - error('should not call .charCodeOf'); + return (isInt(v) && v >= this.firstChar && v <= this.lastChar) ? v : -1; } }; @@ -26476,7 +26476,7 @@ var Font = (function FontClosure() { } } // ... via toUnicode map - if (!charcode && 'toUnicode' in this) { + if (!charcode && this.toUnicode) { charcode = this.toUnicode.charCodeOf(glyphUnicode); } // setting it to unicode if negative or undefined diff --git a/build/pdf.js b/build/pdf.js index 9be63152d..91396de52 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.56'; -PDFJS.build = 'e2aca38'; +PDFJS.version = '1.3.58'; +PDFJS.build = '171f59c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 0f84180d4..832a8eead 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.56'; -PDFJS.build = 'e2aca38'; +PDFJS.version = '1.3.58'; +PDFJS.build = '171f59c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -16920,7 +16920,7 @@ var IdentityToUnicodeMap = (function IdentityToUnicodeMapClosure() { }, charCodeOf: function (v) { - error('should not call .charCodeOf'); + return (isInt(v) && v >= this.firstChar && v <= this.lastChar) ? v : -1; } }; @@ -19364,7 +19364,7 @@ var Font = (function FontClosure() { } } // ... via toUnicode map - if (!charcode && 'toUnicode' in this) { + if (!charcode && this.toUnicode) { charcode = this.toUnicode.charCodeOf(glyphUnicode); } // setting it to unicode if negative or undefined diff --git a/package.json b/package.json index f606a939c..5ea1a6862 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.56", + "version": "1.3.58", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",