pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie Dougal <jamie.dou...@candata.com>
Subject Incorrect Default K value for CCITTFaxDecode
Date Fri, 10 Feb 2012 19:28:22 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message