diff --git a/bower.json b/bower.json index 5f390cacd..aed2d5a24 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.387", + "version": "1.1.390", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 60c2214d1..af318398f 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.387'; -PDFJS.build = '421289c'; +PDFJS.version = '1.1.390'; +PDFJS.build = 'f9c2783'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -33754,7 +33754,10 @@ var PDFImage = (function PDFImageClosure() { } return imgData; } - if (this.image instanceof JpegStream && !this.smask && !this.mask) { + if (this.image instanceof JpegStream && !this.smask && !this.mask && + (this.colorSpace.name === 'DeviceGray' || + this.colorSpace.name === 'DeviceRGB' || + this.colorSpace.name === 'DeviceCMYK')) { imgData.kind = ImageKind.RGB_24BPP; imgData.data = this.getImageBytes(originalHeight * rowBytes, drawWidth, drawHeight, true); diff --git a/build/pdf.js b/build/pdf.js index e0f4b627c..bbc1b6222 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.387'; -PDFJS.build = '421289c'; +PDFJS.version = '1.1.390'; +PDFJS.build = 'f9c2783'; (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 81303a488..5ab08b401 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.387'; -PDFJS.build = '421289c'; +PDFJS.version = '1.1.390'; +PDFJS.build = 'f9c2783'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -27353,7 +27353,10 @@ var PDFImage = (function PDFImageClosure() { } return imgData; } - if (this.image instanceof JpegStream && !this.smask && !this.mask) { + if (this.image instanceof JpegStream && !this.smask && !this.mask && + (this.colorSpace.name === 'DeviceGray' || + this.colorSpace.name === 'DeviceRGB' || + this.colorSpace.name === 'DeviceCMYK')) { imgData.kind = ImageKind.RGB_24BPP; imgData.data = this.getImageBytes(originalHeight * rowBytes, drawWidth, drawHeight, true); diff --git a/package.json b/package.json index db755efbf..b9eca5421 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.387", + "version": "1.1.390", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",