Images in Jfor
Mari Carmen García Mateos <[email protected]> Mon, 09 Feb 2004 16:05:33 +0100
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
<html><div style='background-color:'><DIV class=RTE>
<P>Hi! I'm developing a web application that create documents in pdf format (using FOP) and now I'm creating some of them in rtf format (using jfor). The process is common for both:</P>
<P>xml + xsl ----> xsl-fo ----> pdf or rtf</P>
<P>I am doing some testing in a simple java program, but I'm experiencing some trouble when I include a gif image in the document because the java process don't terminate. Is it a bug???</P>
<P>I include the java code and my xsl file:</P>
<P>"InputSource input = new InputSource(new URL("file","","E:\\pruebasrtf\\resultado.fo").openStream());</P>
<P>FileWriter writer = new FileWriter("E:\\pruebasrtf\\prueba.rtf");</P>
<P> new Converter(input,writer,Converter.createConverterOption());"</P>
<P>"<fo:table><BR> <fo:table-column column-width="3.5cm"/><BR> <fo:table-column column-width="15.5cm"/><BR> <fo:table-body><BR> <fo:table-row><BR> <fo:table-cell><BR> <fo:external-graphic src="E:\pruebasrtf\logo.gif"/><BR> </fo:table-cell><BR> <fo:table-cell><BR> <xsl:apply-templates/><BR> </fo:table-cell><BR> </fo:table-row><BR> </fo:table-body><BR> </fo:table>"</P>
<P>The image is 2.89KB.</P>
<P>Thanks</P></DIV></div><br clear=all><hr>Déjanos tu CV y recibe ofertas de trabajo en tu buzón. <a href="http://g.msn.com/8HMBESES/2752??PS=">Déjate ayudar por MSN Empleo.</a> </html>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn