pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilija Pavlic <ilija.pav...@gmail.com>
Subject Re: Incorrect Default K value for CCITTFaxDecode
Date Sat, 11 Feb 2012 00:25:08 GMT
Hi Jamie,

You might also consider adding the issue to Jira (https://issues.apache.org/jira/browse/PDFBOX).

BR,
Ilija.

On 10. 2. 2012., at 20:28, Jamie Dougal wrote:

> Hi,
> 
> We are trying to import a PDF that is a CCITT Fax PDF.  For some of our
> files we are importing, DecodeParams does not specify a K value.
> 
> in org.apache.pdfbox.filter.CCITTFaxDecodeFilter, line 85 int k =
> decodeParms.getInt(COSName.K);
> 
> following that through we find that getInt() without a default value
> specified defaults to -1.  According to the Adobe PDF specification
> however, the default K value is 0.
> 
> So i believe that line 85 should read:
> int k = decodeParams.getInt(COSName.K, 0);
> 
> -- 
> Jamie Dougal
> CANdata Systems Ltd.
> 416-493-9020 x2417
> Direct: 416-855-2417


Mime
View raw message