You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Patrick Jolliffe, AHK-IDS" <pa...@idsgroup.com> on 2010/03/08 05:04:57 UTC

Possible bug extracting TIFF

Trying to use PDFBox (latest source from SVN) to extract TIFF 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 anything else.  Let
me know if you need any more details.