You can use this to instantiate the FOP object:
Fop fop = fopFactory.newFop(MimeConstants.MIME_TIFF, userAgent, mtiff);
where userAgent is a FOUserAgent instance that you can use to configure
your tiff and mtiff is the OutputStream where you want the image to be
generated.
For further
public byte[] generateImage(InputStream xml, InputStream xslt) throws
BuilderException
{
// OUTPUT STREAM CREATION
// we use a ByteArray because we don't want to generate any file
ByteArrayOutputStream mtiff= new ByteArrayOutputStream(); //
Hernàndez Valls ha escrit:
I keep trying to make the TIFFRenderer work with CCITT T.6 bilevel
compression (CCITT Group 4 facsimile compression). But can't make it work.
When the outputStream flushes I have this exception:
Caused by: java.util.NoSuchElementException
I keep trying to make the TIFFRenderer work with CCITT T.6 bilevel
compression (CCITT Group 4 facsimile compression). But can't make it work.
When the outputStream flushes I have this exception:
Caused by: java.util.NoSuchElementException
at
it? :-)
On 08.09.2006 11:04:22 Oliver Hernàndez Valls wrote:
Hi all,
I'm working with fop to generate MTIFF text images. At the moment i'm
using fop-trunk because no justification functionality is working in fop
0.92 for tiffs.
Right now I've all the functionality to generate parametrized text
images implemented
Hi Jeremias,
I've been working a little with your suggestions.
What I have done is this little work:
1 -Extract code into a protected method to instantiate the BufferedImage
that we paint on. This methods signature is:
protected BufferedImage getBufferedImage(int bitmapWidth,
Hi all,
I'm working with fop to generate MTIFF text images. At the moment i'm
using fop-trunk because no justification functionality is working in fop
0.92 for tiffs.
Right now I've all the functionality to generate parametrized text
images implemented. By default fop uses packbits
Hi all,
I'm working in a j2ee project where we need to generate text images. We
use FOP 0.91 beta for creating MTIFF text images from dinamically
generated xmls from database.
As this images are inserted into public documents the text must be
justified for a correct layout.