From c083b16818ddc49b77492e8dcbb1bb4acdac85e7 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Fri, 15 May 2015 11:55:00 +0100 Subject: [PATCH] PDF.js version 1.1.143 --- bower.json | 2 +- build/pdf.combined.js | 13 +++++++++---- build/pdf.js | 4 ++-- build/pdf.worker.js | 13 +++++++++---- package.json | 2 +- 5 files changed, 22 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index c3a112d44..9f487988f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.140", + "version": "1.1.143", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 6aaea6635..448c8f101 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.1.140'; -PDFJS.build = '9deae0e'; +PDFJS.version = '1.1.143'; +PDFJS.build = '7da9626'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -23776,7 +23776,10 @@ var Font = (function FontClosure() { } } - if (!potentialTable) { + if (potentialTable) { + font.pos = start + potentialTable.offset; + } + if (!potentialTable || font.peekByte() === -1) { warn('Could not find a preferred cmap table.'); return { platformId: -1, @@ -23786,7 +23789,6 @@ var Font = (function FontClosure() { }; } - font.pos = start + potentialTable.offset; var format = font.getUint16(); var length = font.getUint16(); var language = font.getUint16(); @@ -24221,6 +24223,9 @@ var Font = (function FontClosure() { default: warn('Unknown/unsupported post table version ' + version); valid = false; + if (properties.defaultEncoding) { + glyphNames = properties.defaultEncoding; + } break; } properties.glyphNames = glyphNames; diff --git a/build/pdf.js b/build/pdf.js index deede9ba5..e11961e01 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.1.140'; -PDFJS.build = '9deae0e'; +PDFJS.version = '1.1.143'; +PDFJS.build = '7da9626'; (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 f556c3ce1..a25504ded 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.1.140'; -PDFJS.build = '9deae0e'; +PDFJS.version = '1.1.143'; +PDFJS.build = '7da9626'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -17423,7 +17423,10 @@ var Font = (function FontClosure() { } } - if (!potentialTable) { + if (potentialTable) { + font.pos = start + potentialTable.offset; + } + if (!potentialTable || font.peekByte() === -1) { warn('Could not find a preferred cmap table.'); return { platformId: -1, @@ -17433,7 +17436,6 @@ var Font = (function FontClosure() { }; } - font.pos = start + potentialTable.offset; var format = font.getUint16(); var length = font.getUint16(); var language = font.getUint16(); @@ -17868,6 +17870,9 @@ var Font = (function FontClosure() { default: warn('Unknown/unsupported post table version ' + version); valid = false; + if (properties.defaultEncoding) { + glyphNames = properties.defaultEncoding; + } break; } properties.glyphNames = glyphNames; diff --git a/package.json b/package.json index 446848445..aae3f3af6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.140", + "version": "1.1.143", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",