diff --git a/bower.json b/bower.json index 001c94c20..f10a8943d 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.465", + "version": "1.0.467", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index a9802ccf0..16cacad89 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.465'; -PDFJS.build = '584fef9'; +PDFJS.version = '1.0.467'; +PDFJS.build = '53320ce'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -22652,7 +22652,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // 9.10.2 var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode')); if (toUnicode) { - properties.toUnicode = this.readToUnicode(toUnicode, xref, properties); + properties.toUnicode = this.readToUnicode(toUnicode); } if (properties.composite) { // CIDSystemInfo helps to match CID to glyphs @@ -22736,9 +22736,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) { var cmapObj = toUnicode; if (isName(cmapObj)) { - return CMapFactory.create(cmapObj).map; + return CMapFactory.create(cmapObj, + { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null).map; } else if (isStream(cmapObj)) { - var cmap = CMapFactory.create(cmapObj).map; + var cmap = CMapFactory.create(cmapObj, + { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null).map; // Convert UTF-16BE // NOTE: cmap can be a sparse array, so use forEach instead of for(;;) // to iterate over all keys. @@ -24740,7 +24742,7 @@ var CMapFactory = (function CMapFactoryClosure() { if (BUILT_IN_CMAPS.indexOf(name) === -1) { error('Unknown cMap name: ' + name); } - assert (builtInCMapParams, 'buildin cmap parameters are not provided'); + assert(builtInCMapParams, 'built-in cMap parameters are not provided'); if (builtInCMapParams.packed) { return parseBinaryCMap(name, builtInCMapParams); diff --git a/build/pdf.js b/build/pdf.js index fd02f38f3..83c38fb0f 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.465'; -PDFJS.build = '584fef9'; +PDFJS.version = '1.0.467'; +PDFJS.build = '53320ce'; (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 d1628bd48..482b26eb6 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.465'; -PDFJS.build = '584fef9'; +PDFJS.version = '1.0.467'; +PDFJS.build = '53320ce'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -17798,7 +17798,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // 9.10.2 var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode')); if (toUnicode) { - properties.toUnicode = this.readToUnicode(toUnicode, xref, properties); + properties.toUnicode = this.readToUnicode(toUnicode); } if (properties.composite) { // CIDSystemInfo helps to match CID to glyphs @@ -17882,9 +17882,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) { var cmapObj = toUnicode; if (isName(cmapObj)) { - return CMapFactory.create(cmapObj).map; + return CMapFactory.create(cmapObj, + { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null).map; } else if (isStream(cmapObj)) { - var cmap = CMapFactory.create(cmapObj).map; + var cmap = CMapFactory.create(cmapObj, + { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null).map; // Convert UTF-16BE // NOTE: cmap can be a sparse array, so use forEach instead of for(;;) // to iterate over all keys. @@ -19886,7 +19888,7 @@ var CMapFactory = (function CMapFactoryClosure() { if (BUILT_IN_CMAPS.indexOf(name) === -1) { error('Unknown cMap name: ' + name); } - assert (builtInCMapParams, 'buildin cmap parameters are not provided'); + assert(builtInCMapParams, 'built-in cMap parameters are not provided'); if (builtInCMapParams.packed) { return parseBinaryCMap(name, builtInCMapParams); diff --git a/package.json b/package.json index a374639bd..e7fbcf9ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.465", + "version": "1.0.467", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",