From ef95feb8438fceced21b03e7788d56fbb2ad5db4 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:34:31 -0500 Subject: [PATCH] PDF.js version 1.0.744 --- bower.json | 2 +- build/pdf.combined.js | 15 ++++++++------- build/pdf.js | 4 ++-- build/pdf.worker.js | 15 ++++++++------- package.json | 2 +- 5 files changed, 20 insertions(+), 18 deletions(-) diff --git a/bower.json b/bower.json index f12306ce4..580fdb590 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.742", + "version": "1.0.744", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 5160c8285..7fc20d919 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.742'; -PDFJS.build = '1d9dc37'; +PDFJS.version = '1.0.744'; +PDFJS.build = 'f925e7d'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -13412,20 +13412,21 @@ var CalRGBCS = (function CalRGBCSClosure() { convertToRgb(this, src, srcOffset, dest, destOffset, 1); }, getRgbBuffer: function CalRGBCS_getRgbBuffer(src, srcOffset, count, - dest, destOffset, bits) { + dest, destOffset, bits, + alpha01) { var scale = 1 / ((1 << bits) - 1); for (var i = 0; i < count; ++i) { convertToRgb(this, src, srcOffset, dest, destOffset, scale); srcOffset += 3; - destOffset += 3; + destOffset += 3 + alpha01; } }, - getOutputLength: function CalRGBCS_getOutputLength(inputLength) { - return inputLength; + getOutputLength: function CalRGBCS_getOutputLength(inputLength, alpha01) { + return (inputLength * (3 + alpha01) / 3) | 0; }, isPassthrough: ColorSpace.prototype.isPassthrough, - createRgbBuffer: ColorSpace.prototype.createRgbBuffer, + fillRgb: ColorSpace.prototype.fillRgb, isDefaultDecode: function CalRGBCS_isDefaultDecode(decodeMap) { return ColorSpace.isDefaultDecode(decodeMap, this.numComps); }, diff --git a/build/pdf.js b/build/pdf.js index 914b746bf..013292f35 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.742'; -PDFJS.build = '1d9dc37'; +PDFJS.version = '1.0.744'; +PDFJS.build = 'f925e7d'; (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 6d47d9481..28608e93d 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.742'; -PDFJS.build = '1d9dc37'; +PDFJS.version = '1.0.744'; +PDFJS.build = 'f925e7d'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -7377,20 +7377,21 @@ var CalRGBCS = (function CalRGBCSClosure() { convertToRgb(this, src, srcOffset, dest, destOffset, 1); }, getRgbBuffer: function CalRGBCS_getRgbBuffer(src, srcOffset, count, - dest, destOffset, bits) { + dest, destOffset, bits, + alpha01) { var scale = 1 / ((1 << bits) - 1); for (var i = 0; i < count; ++i) { convertToRgb(this, src, srcOffset, dest, destOffset, scale); srcOffset += 3; - destOffset += 3; + destOffset += 3 + alpha01; } }, - getOutputLength: function CalRGBCS_getOutputLength(inputLength) { - return inputLength; + getOutputLength: function CalRGBCS_getOutputLength(inputLength, alpha01) { + return (inputLength * (3 + alpha01) / 3) | 0; }, isPassthrough: ColorSpace.prototype.isPassthrough, - createRgbBuffer: ColorSpace.prototype.createRgbBuffer, + fillRgb: ColorSpace.prototype.fillRgb, isDefaultDecode: function CalRGBCS_isDefaultDecode(decodeMap) { return ColorSpace.isDefaultDecode(decodeMap, this.numComps); }, diff --git a/package.json b/package.json index c0be9714c..1d397b5e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.742", + "version": "1.0.744", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",