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]