Re: Help needed in converting XML to Tiff

2006-09-19 Thread Oliver Hernàndez Valls
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

Re: Help needed in converting XML to Tiff

2006-09-19 Thread Oliver Hernàndez Valls
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(); //

Re: outputting TIFF-G images

2006-09-15 Thread Oliver Hernàndez Valls
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

Re: outputting TIFF-G images

2006-09-14 Thread Oliver Hernàndez Valls
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

Re: outputting TIFF-G images

2006-09-13 Thread Oliver Hernàndez Valls
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

Re: outputting TIFF-G images

2006-09-13 Thread Oliver Hernàndez Valls
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,

outputting TIFF-G images

2006-09-08 Thread Oliver Hernàndez Valls
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

Text justification in MTIFF output

2006-06-09 Thread Oliver Hernàndez Valls
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.