Not really sure if this is a FOP question, a JAI question, or Both…

I am successfully producing a TIFF via fop using a configuration file that
has the following set for the renderer:
      [renderer mime="image/tiff"]
        [compression]CCITT T.4[/compression]
      [/renderer]

Because I am using CCITT compression, jai_imageio.jar is required. 

PROBLEM:  I am pulling my hair out trying to figure how to force TILED
rendering rather than STRIPED rendering of the tiff image. There does not
appear to be any obvious way to configure JAI to produce such results. 

The only approach that looked (somewhat) plausible was found on the
internets….
        FOUserAgent ua = fopFactory.newFOUserAgent();
        TIFFRenderer tr = new TIFFRenderer();
        TIFFImageWriteParam trp = new TIFFImageWriteParam(Locale.US);   
//requires jai_imageio.jar
        trp.setTilingMode(TIFFImageWriteParam.MODE_DEFAULT);
        ua.setRendererOverride(tr);

Which is swell… but, I don’t see any sort of ‘setImageWriteParam()’ method
ANYWHERE… the closest thing I’ve seen is –
        TIFFRenderer tr = new TIFFRenderer();
        ImageWriterParams imp = tr.getWriterParams();

And as far as I can tell, ImageWriterParams has nothing to do with
TIFFImageWriteParam (extends ImageWriteParam). All of the example code with
regards to TIFFImageWriteParam involves direct interaction with the output
stream… doesn’t really feel like something that is easily done or should
even be attempted given my exact usage – sending xsl-fo to FOP who is then
using JAI for tiff rendering.   

Any help would be greatly appreciated!!! 

-- 
View this message in context: 
http://old.nabble.com/How-to-get-a-tiled-TIFF-from-FOP-rather-than-striped-tp31720664p31720664.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to