Hi,

Am 10.02.2012 20:28, schrieb Jamie Dougal:
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);
I already did that in revision 1149290, see [1] for details.

BR
Andreas Lehmkühler

[1] https://issues.apache.org/jira/browse/PDFBOX-1073

Reply via email to