Forráskód Böngészése

PDF.js version 1.1.390

Pdf Bot 9 éve
szülő
commit
161c11e53a
5 módosított fájl, 16 hozzáadás és 10 törlés
  1. 1 1
      bower.json
  2. 6 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 6 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
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"

+ 6 - 3
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);

+ 2 - 2
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

+ 6 - 3
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);

+ 1 - 1
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",