diff --git a/bower.json b/bower.json index 3a0b332b7..ae0584d68 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.215", + "version": "1.4.217", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 6ff8b043f..84c213460 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.215'; -var pdfjsBuild = '5f925a5'; +var pdfjsVersion = '1.4.217'; +var pdfjsBuild = '070f2d3'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -46620,13 +46620,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { }); }, - extractDataStructures: function - partialEvaluatorExtractDataStructures(dict, baseDict, - xref, properties) { + extractDataStructures: + function PartialEvaluator_extractDataStructures(dict, baseDict, + xref, properties) { // 9.10.2 var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode')); var toUnicodePromise = toUnicode ? - this.readToUnicode(toUnicode) : Promise.resolve(undefined); + this.readToUnicode(toUnicode) : Promise.resolve(undefined); if (properties.composite) { // CIDSystemInfo helps to match CID to glyphs @@ -46724,9 +46724,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { /** * Builds a char code to unicode map based on section 9.10 of the spec. * @param {Object} properties Font properties object. - * @return {Promise} A Promise resolving to ToUnicodeMap object. + * @return {Promise} A Promise that is resolved with a + * {ToUnicodeMap|IdentityToUnicodeMap} object. */ - buildToUnicode: function partialEvaluator_buildToUnicode(properties) { + buildToUnicode: function PartialEvaluator_buildToUnicode(properties) { // Section 9.10.2 Mapping Character Codes to Unicode Values if (properties.toUnicode && properties.toUnicode.length !== 0) { return Promise.resolve(properties.toUnicode); @@ -46827,7 +46828,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // c) Construct a second CMap name by concatenating the registry and // ordering obtained in step (b) in the format registry–ordering–UCS2 // (for example, Adobe–Japan1–UCS2). - var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2'); + var ucs2CMapName = Name.get(registry + '-' + ordering + '-UCS2'); // d) Obtain the CMap with the name constructed in step (c) (available // from the ASN Web site; see the Bibliography). return CMapFactory.create(ucs2CMapName, this.options.cMapOptions, diff --git a/build/pdf.js b/build/pdf.js index d1eb535f1..2ded69596 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.215'; -var pdfjsBuild = '5f925a5'; +var pdfjsVersion = '1.4.217'; +var pdfjsBuild = '070f2d3'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index fec8ac9c6..d114459f0 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.215'; -var pdfjsBuild = '5f925a5'; +var pdfjsVersion = '1.4.217'; +var pdfjsBuild = '070f2d3'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -38359,13 +38359,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { }); }, - extractDataStructures: function - partialEvaluatorExtractDataStructures(dict, baseDict, - xref, properties) { + extractDataStructures: + function PartialEvaluator_extractDataStructures(dict, baseDict, + xref, properties) { // 9.10.2 var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode')); var toUnicodePromise = toUnicode ? - this.readToUnicode(toUnicode) : Promise.resolve(undefined); + this.readToUnicode(toUnicode) : Promise.resolve(undefined); if (properties.composite) { // CIDSystemInfo helps to match CID to glyphs @@ -38463,9 +38463,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { /** * Builds a char code to unicode map based on section 9.10 of the spec. * @param {Object} properties Font properties object. - * @return {Promise} A Promise resolving to ToUnicodeMap object. + * @return {Promise} A Promise that is resolved with a + * {ToUnicodeMap|IdentityToUnicodeMap} object. */ - buildToUnicode: function partialEvaluator_buildToUnicode(properties) { + buildToUnicode: function PartialEvaluator_buildToUnicode(properties) { // Section 9.10.2 Mapping Character Codes to Unicode Values if (properties.toUnicode && properties.toUnicode.length !== 0) { return Promise.resolve(properties.toUnicode); @@ -38566,7 +38567,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { // c) Construct a second CMap name by concatenating the registry and // ordering obtained in step (b) in the format registry–ordering–UCS2 // (for example, Adobe–Japan1–UCS2). - var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2'); + var ucs2CMapName = Name.get(registry + '-' + ordering + '-UCS2'); // d) Obtain the CMap with the name constructed in step (c) (available // from the ASN Web site; see the Bibliography). return CMapFactory.create(ucs2CMapName, this.options.cMapOptions, diff --git a/package.json b/package.json index 76bd82be0..6f91f7d76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.215", + "version": "1.4.217", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [