Return-Path: X-Original-To: apmail-pdfbox-commits-archive@www.apache.org Delivered-To: apmail-pdfbox-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6C1E17BAA for ; Fri, 17 Oct 2014 20:21:06 +0000 (UTC) Received: (qmail 77723 invoked by uid 500); 17 Oct 2014 20:21:06 -0000 Delivered-To: apmail-pdfbox-commits-archive@pdfbox.apache.org Received: (qmail 77705 invoked by uid 500); 17 Oct 2014 20:21:06 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 77691 invoked by uid 99); 17 Oct 2014 20:21:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 20:21:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 20:21:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 35223238899C; Fri, 17 Oct 2014 20:20:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141017202045.35223238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); }