Hi,

>Betreff: Possible bug extracting TIFF
>Gesendet: Mo, 08. Mrz 2010
>Von: Patrick Jolliffe, AHK-IDS
>
>Trying to use PDFBox (latest source from SVN) to extractTIFF from PDF 
>(attached).
>All is pretty good, however TIFF colors seems to be inverse.
>I debugged a bit, and put in a fix that works for me:
>Changed the following section:
> 
>               if (decodeParms.getBoolean("BlackIs1", false))
>               {
>                    blackis1 = 1;
>                }
> 
>To the following:
> 
> 
>                if (decodeParms.getBoolean("BlackIs1", true))
>                {
>                    blackis1 = 1;
>                }
> 
>Not sure if that is a valid fix, or if that breaks anythingelse.  Let me know 
>if you need any more details.
Hmmm, in chapter 3.3.5 "CCITTFaxDecode Filter" of the pdf reference manual the 
default value for
"BlackIs1" is "false". So, I guess the existing code seems to be correct.
Can you provide us with a sample pdf? If so, please create an issue on JIRA [1] 
and attach the file
to it. Due to some restrictions the mailing list itself doesn't support 
attachments.


BR
Andreas Lehmkühler

P.S.: Please avoid html formated postings. Usually those will be rejected, if 
they aren't moderated manually
through.

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

Reply via email to