From 17e064257687740ae4f7f3fbf933084dfb24525b Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 5 May 2015 22:42:35 +0100 Subject: [PATCH] PDF.js version 1.1.111 --- bower.json | 2 +- build/pdf.combined.js | 23 +++++++++++++++++++++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 23 +++++++++++++++++++++-- package.json | 2 +- 5 files changed, 46 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 2ec7c11f5..c1e7c7b92 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.109", + "version": "1.1.111", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 338c4458f..23a24e6b3 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.109'; -PDFJS.build = 'd28fb5a'; +PDFJS.version = '1.1.111'; +PDFJS.build = 'cd53cbe'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -9610,6 +9610,10 @@ var Dict = (function DictClosure() { return all; }, + getKeys: function Dict_getKeys() { + return Object.keys(this.map); + }, + set: function Dict_set(key, value) { this.map[key] = value; }, @@ -18439,6 +18443,21 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { hash.update(encoding.name); } else if (isRef(encoding)) { hash.update(encoding.num + '_' + encoding.gen); + } else if (isDict(encoding)) { + var keys = encoding.getKeys(); + for (var i = 0, ii = keys.length; i < ii; i++) { + var entry = encoding.getRaw(keys[i]); + if (isName(entry)) { + hash.update(entry.name); + } else if (isRef(entry)) { + hash.update(entry.num + '_' + entry.gen); + } else if (isArray(entry)) { // 'Differences' entry. + // Ideally we should check the contents of the array, but to avoid + // parsing it here and then again in |extractDataStructures|, + // we only use the array length for now (fixes bug1157493.pdf). + hash.update(entry.length.toString()); + } + } } var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode'); diff --git a/build/pdf.js b/build/pdf.js index f7c5f61b1..f38e8c0f6 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.109'; -PDFJS.build = 'd28fb5a'; +PDFJS.version = '1.1.111'; +PDFJS.build = 'cd53cbe'; (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 aad10202b..b7596cde0 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.109'; -PDFJS.build = 'd28fb5a'; +PDFJS.version = '1.1.111'; +PDFJS.build = 'cd53cbe'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3263,6 +3263,10 @@ var Dict = (function DictClosure() { return all; }, + getKeys: function Dict_getKeys() { + return Object.keys(this.map); + }, + set: function Dict_set(key, value) { this.map[key] = value; }, @@ -12092,6 +12096,21 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { hash.update(encoding.name); } else if (isRef(encoding)) { hash.update(encoding.num + '_' + encoding.gen); + } else if (isDict(encoding)) { + var keys = encoding.getKeys(); + for (var i = 0, ii = keys.length; i < ii; i++) { + var entry = encoding.getRaw(keys[i]); + if (isName(entry)) { + hash.update(entry.name); + } else if (isRef(entry)) { + hash.update(entry.num + '_' + entry.gen); + } else if (isArray(entry)) { // 'Differences' entry. + // Ideally we should check the contents of the array, but to avoid + // parsing it here and then again in |extractDataStructures|, + // we only use the array length for now (fixes bug1157493.pdf). + hash.update(entry.length.toString()); + } + } } var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode'); diff --git a/package.json b/package.json index d2d9e0ece..3b465fd94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.109", + "version": "1.1.111", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",