pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1838575 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
Date Tue, 21 Aug 2018 17:40:42 GMT
Author: tilman
Date: Tue Aug 21 17:40:42 2018
New Revision: 1838575

URL: http://svn.apache.org/viewvc?rev=1838575&view=rev
Log:
PDFBOX-4267: matte entry should use the color space of the image, not the color space of the
SMask, by Jani Pehkonen

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java?rev=1838575&r1=1838574&r2=1838575&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
Tue Aug 21 17:40:42 2018
@@ -455,7 +455,7 @@ public final class PDImageXObject extend
             // see PDF specification 1.7, 11.6.5.3 Soft-Mask Images
             matte = ((COSArray) base).toFloatArray();
             // convert to RGB
-            matte = softMask.getColorSpace().toRGB(matte);
+            matte = getColorSpace().toRGB(matte);
         }
         return matte;
     }



Mime
View raw message