pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1632662 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDCcitt.java
Date Fri, 17 Oct 2014 20:20:45 GMT
Author: tilman
Date: Fri Oct 17 20:20:44 2014
New Revision: 1632662

URL: http://svn.apache.org/r1632662
Log:
PDFBOX-2435: ignore decode array if there is a mask, because this is handled later

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDCcitt.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDCcitt.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDCcitt.java?rev=1632662&r1=1632661&r2=1632662&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDCcitt.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/xobject/PDCcitt.java
Fri Oct 17 20:20:44 2014
@@ -193,8 +193,9 @@ public class PDCcitt extends PDXObjectIm
         IOUtils.closeQuietly(is);
         BufferedImage image = new BufferedImage(colorModel, raster, false, null);
         // maybe a decode array is defined
+        // ignore it there is a mask, because this is handled later
         COSArray decode = getDecode();
-        if (decode != null && decode.getInt(0) == 1)
+        if (!hasMask() && decode != null && decode.getInt(0) == 1)
         {
             invertBitmap(bufferData);
         }



Mime
View raw message