From 81bde272778b62a312ed74fb96b039c150279264 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:29:41 -0500 Subject: [PATCH] PDF.js version 1.0.492 --- bower.json | 2 +- build/pdf.combined.js | 11 ++++++----- build/pdf.js | 4 ++-- build/pdf.worker.js | 11 ++++++----- package.json | 2 +- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/bower.json b/bower.json index bb7fe9975..60aca1b62 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.490", + "version": "1.0.492", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 7fca5f353..d38c25e54 100644 --- a/build/pdf.combined.js +++ b/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) { diff --git a/build/pdf.js b/build/pdf.js index 317a178b9..b3d288910 100644 --- a/build/pdf.js +++ b/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 diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 3bfadcf3d..6715e998a 100644 --- a/build/pdf.worker.js +++ b/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) { diff --git a/package.json b/package.json index 749eaa411..1e2c5f372 100644 --- a/package.json +++ b/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",