Oleg, Me again. Making excellent progress. Based on your advice and some study time digging in the code, I was able to get the right sized images, using the right compression, and output to a new tiff file per FO page. Thank you very much, I am in your debt.
The last thing that remains is fixing the white on black issue. These show a black background/white foreground: - Adobe Photoshop 6.0 - Apple QuickTime 6 PictureViewer - Microsoft Imaging Preview These show a white background/black foreground: - Adobe Acrobat 4 - Adobe ImageReady 3.0 Unfortunately, this is an add-on to a preexisting process that already has several gigs of TIFF images in an optical store, all of which show up the opposite as the ones I am creating. Regardless of the viewer, I will need to somehow flip the "black" to "white". Any idea on how to make this change? I've been trying to forcefully change the image type in the encoder from TIFF_BILEVEL_BLACK_IS_ZERO to TIFF_BILEVEL_WHITE_IS_ZERO. Seems to have no effect. Maybe I'm not going about that in the right way or maybe I'm on the wrong track altogether. -David > -----Original Message----- > From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 5:23 AM > To: [EMAIL PROTECTED] > Subject: Re: FOP output to TIFF > > > David Blevins wrote: > > > Multithreaded access isn't a requirement, so we are in the clear > > there. The requirements are simple: > > > > 1. TIFFs must use comp group 3x or greater > > 2. Must be able to set (or even hardcode) the width and height. 3. > > Must be able to split each "page" of the XSL-FO doc into > separate TIFF > > files. > Well, FOP and TIFFRenderer support 1 and 2, but number 3 > requires specialized > TIFFRenderer. That's quite easy actually, all one has to do > is to override > stopRenderer() method and instead of encoding every page > images into the same > output stream create new output stream for each one. Look at > TIFFRenderer > sources, that's easy. May be I can find a time to make it > myself this weekend. > > > 2. XSL-FO to TIFF using your TIFFRenderer. Meets requirement 1, > > though still getting black backgrounds. Using Photoshop > and QuickTime > > to view the output. > Hmm, it's ok for me in Adobe Photoshop, are you sure it's > inverted in Photoshop? > > This might be an easy thing to reverse if I knew which > > section of the code needed changing. > It's hardcoded in TIFF encoder code now, a volunteer is > needed to make it > parametrizable, I'll try probably. > > If that were resolved, I would > > still need a solution for requirements 2 and 3. > Well, requirement 2 is just XSL-FO's page-height/page-width > properties I think. > > -- > Oleg Tkachenko > Multiconn Technologies, Israel > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
