From 35abc23197013bbeb9a7a23974dce0b62214ef16 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 29 Sep 2015 23:03:43 +0100 Subject: [PATCH] PDF.js version 1.1.488 --- bower.json | 2 +- build/pdf.combined.js | 24 ++++++++++++++++++++---- build/pdf.js | 4 ++-- build/pdf.worker.js | 24 ++++++++++++++++++++---- package.json | 2 +- 5 files changed, 44 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index 111700013..68fdfe742 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.485", + "version": "1.1.488", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index f4618dd26..1c136d2d8 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.485'; -PDFJS.build = 'e28ad20'; +PDFJS.version = '1.1.488'; +PDFJS.build = 'a6761a5'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -9675,6 +9675,22 @@ var Dict = (function DictClosure() { return Promise.resolve(value); }, + // Same as get(), but dereferences all elements if the result is an Array. + getArray: function Dict_getArray(key1, key2, key3) { + var value = this.get(key1, key2, key3); + if (!isArray(value)) { + return value; + } + value = value.slice(); // Ensure that we don't modify the Dict data. + for (var i = 0, ii = value.length; i < ii; i++) { + if (!isRef(value[i])) { + continue; + } + value[i] = this.xref.fetch(value[i]); + } + return value; + }, + // no dereferencing getRaw: function Dict_getRaw(key) { return this.map[key]; @@ -17317,8 +17333,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { xobj, smask, operatorList, initialState) { - var matrix = xobj.dict.get('Matrix'); - var bbox = xobj.dict.get('BBox'); + var matrix = xobj.dict.getArray('Matrix'); + var bbox = xobj.dict.getArray('BBox'); var group = xobj.dict.get('Group'); if (group) { var groupOptions = { diff --git a/build/pdf.js b/build/pdf.js index 17fb1f2a7..47638aa70 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.485'; -PDFJS.build = 'e28ad20'; +PDFJS.version = '1.1.488'; +PDFJS.build = 'a6761a5'; (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 00a0fd3d0..beba09cbe 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.485'; -PDFJS.build = 'e28ad20'; +PDFJS.version = '1.1.488'; +PDFJS.build = 'a6761a5'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3214,6 +3214,22 @@ var Dict = (function DictClosure() { return Promise.resolve(value); }, + // Same as get(), but dereferences all elements if the result is an Array. + getArray: function Dict_getArray(key1, key2, key3) { + var value = this.get(key1, key2, key3); + if (!isArray(value)) { + return value; + } + value = value.slice(); // Ensure that we don't modify the Dict data. + for (var i = 0, ii = value.length; i < ii; i++) { + if (!isRef(value[i])) { + continue; + } + value[i] = this.xref.fetch(value[i]); + } + return value; + }, + // no dereferencing getRaw: function Dict_getRaw(key) { return this.map[key]; @@ -10856,8 +10872,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { xobj, smask, operatorList, initialState) { - var matrix = xobj.dict.get('Matrix'); - var bbox = xobj.dict.get('BBox'); + var matrix = xobj.dict.getArray('Matrix'); + var bbox = xobj.dict.getArray('BBox'); var group = xobj.dict.get('Group'); if (group) { var groupOptions = { diff --git a/package.json b/package.json index 43983f5f0..97c400d68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.485", + "version": "1.1.488", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",