Thanks for the response Jeremias. I have indeed read the docs on the page you refer me too but I am not having any luck. I have included JAI in my build's classpath yet FOP is still using the built-in codec and I have no idea how to configure FOP to use JAI's codec. I am using maven as my build tool so I do not have a FOP lib directory to place the JAI jar into but I can assure you that the JAI jar is certainly on my project's classpath. Any more clues you could give me would be greatly appreciated.
Thanks! -Ryan On Fri, Apr 9, 2010 at 9:16 AM, Jeremias Maerki <[email protected]>wrote: > http://xmlgraphics.apache.org/fop/0.95/output.html#bitmap has the > missing clue. CCITT compression only works if you have JAI ImageIO Tools > in the classpath. Our built-in TIFF codec doesn't support CCITT > compression. Only the the one from JAI ImageIO Tools does. > > On 06.04.2010 16:23:05 Ryan Connolly wrote: > > Hello everyone, > > I've recently started using FOP for a project I'm working on and I'm > > needing to produce TIFF group 4 files using FOP. I've tried many > different > > things and I'm just not able to get things working, well not completely > > anyway. > > > > Using the following Fop instance[1] I successfully create a multi-page > TIFF > > file, however creating a PDF instead generates a file size of 18k while > the > > TIFF at target resolution of 240dpi produces a file size of 4,894k. I've > > also noticed that the default TIFFRenderer uses PACKBITS compression and > > I've yet been unable to change this. I've tried to configure the > renderer > > to use CCITT T.6 compression via configuration file to no avail and I've > > noticed that the compression doesnt appear to be settable in > > TIFFRenderer[3]? Any and all help in getting a more workable TIFF file > size > > would be MUCH appreciated! > > > > > > [1] Fop fop = fopFactory.newFop( > > MimeConstants.MIME_TIFF, foUserAgent, out); > > > > [2] > > <renderer mime="image/tiff"> > > <transparent-page-background>true</transparent-page-background> > > <compression>CCITT T.6</compression> > > </renderer> > > > > [3] > > > > /** Creates TIFF renderer. */ > > public TIFFRenderer() { > > writerParams = new ImageWriterParams(); > > writerParams.setCompressionMethod(COMPRESSION_PACKBITS); > > > > } > > > > > > > > Thanks in advance. > > -Ryan > > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- �...@n
