Java transformation from xsl-fo to pdf
Hi, I need transform a XSL-FO file to a PDF file. I am a beginner in Java, the next code would be correct? What have I to change? Code: import javax.xml.transform.*; import javax.xml.transform.stream.*; import java.io.File; import org.apache.fop.apps.Fop; public class pdf { public static void main(String[] args) throws Exception { File in = new File(args[0]); File out = new File(args[1]); Driver driver=new Driver(); driver.setRenderer(Driver.RENDER_PDF); driver.setWriter(new PrintWriter(new FileWriter(out))); driver.buildFOTree((Parser)parser, new InputSource(in) ); driver.format(); driver.render(); } } I use the next libraries: fop.jar;xerces-1.2.3.jar;w3c.jar;xalan-2.0.0.jar;jimi-1.0.jar Where can I find a correct code? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Java code doing transformation from xml to pdf
Hi, I have done a stylesheet that transform XML to XSL-FO, in order to create a PDF file from XML. Where can I find the java code that does this transformation? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
External links
Hi, When I transform to PDF a XSL-FO file that contain the next, using Fop-0.18.1-DEV http://www.mikeoldfield.org"; text-decoration="underline"> Web: http://www.mikeoldfield.org this error happens: "FATAL ERROR: basic-link can't be directly under flow" Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: A line in white
> Did you try > I would to know what is the tag that it does what does in HTML, go to > the next line. > > Thanks When I do the transformation to PDF (With Fop 0.18.1) it doesn't appear a empty line Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
A line in white
Hi, I would to know what is the tag that it does what does in HTML, go to the next line. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]