diff --git a/bower.json b/bower.json index 580591335..c954b0b1d 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1135", + "version": "1.0.1137", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 3e317800f..ffad37a0c 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1135'; -PDFJS.build = 'ccf05c7'; +PDFJS.version = '1.0.1137'; +PDFJS.build = 'fb82000'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -23591,7 +23591,11 @@ var Font = (function FontClosure() { var offset = font.getInt32() >>> 0; var useTable = false; - if (platformId === 1 && encodingId === 0) { + if (platformId === 0 && encodingId === 0) { + useTable = true; + // Continue the loop since there still may be a higher priority + // table. + } else if (platformId === 1 && encodingId === 0) { useTable = true; // Continue the loop since there still may be a higher priority // table. @@ -24564,6 +24568,12 @@ var Font = (function FontClosure() { } } } + } else if (cmapPlatformId === 0 && cmapEncodingId === 0) { + // Default Unicode semantics, use the charcodes as is. + for (i = 0; i < cmapMappingsLength; ++i) { + charCodeToGlyphId[cmapMappings[i].charCode] = + cmapMappings[i].glyphId; + } } else { // For (3, 0) cmap tables: // The charcode key being stored in charCodeToGlyphId is the lower diff --git a/build/pdf.js b/build/pdf.js index e7baa41c6..11a509f98 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1135'; -PDFJS.build = 'ccf05c7'; +PDFJS.version = '1.0.1137'; +PDFJS.build = 'fb82000'; (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 95bf66035..ee106b64e 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1135'; -PDFJS.build = 'ccf05c7'; +PDFJS.version = '1.0.1137'; +PDFJS.build = 'fb82000'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -17266,7 +17266,11 @@ var Font = (function FontClosure() { var offset = font.getInt32() >>> 0; var useTable = false; - if (platformId === 1 && encodingId === 0) { + if (platformId === 0 && encodingId === 0) { + useTable = true; + // Continue the loop since there still may be a higher priority + // table. + } else if (platformId === 1 && encodingId === 0) { useTable = true; // Continue the loop since there still may be a higher priority // table. @@ -18239,6 +18243,12 @@ var Font = (function FontClosure() { } } } + } else if (cmapPlatformId === 0 && cmapEncodingId === 0) { + // Default Unicode semantics, use the charcodes as is. + for (i = 0; i < cmapMappingsLength; ++i) { + charCodeToGlyphId[cmapMappings[i].charCode] = + cmapMappings[i].glyphId; + } } else { // For (3, 0) cmap tables: // The charcode key being stored in charCodeToGlyphId is the lower diff --git a/package.json b/package.json index 9609b028b..b82a42a2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1135", + "version": "1.0.1137", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",