[xep-support] Running XEP from Java program

gil_loureiro at iol.pt gil_loureiro at iol.pt
Thu May 17 06:16:33 PDT 2007


Hi all,

I'm trying to run XEP from a Java program, and sucessfully do it from fo to pdf with attached code.
But, what I really need is apply a XSLT transformation over a XSL that merges a template with XML data into a fo then in a PDF; is this possible? How?

Thanks,
GLoureiro

****************************************************************

java.util.Properties props = new java.util.Properties();
	props.setProperty("CONFIG", "D:/Program Files/RenderX/XEP/xep.xml"); 


		
		
		
        javax.xml.transform.Source source =
        new StreamSource("D:/MeusDocs/XHTML2XSLFO/dm.fo");
        com.renderx.xep.FormatterImpl formatter =
        new com.renderx.xep.FormatterImpl(props);
        ByteArrayOutputStream baros = new ByteArrayOutputStream ();
        com.renderx.xep.FOTarget target = null;
                
        
		try {
			target = new com.renderx.xep.FOTarget(new FileOutputStream("d:/tst.pdf"), "PDF" );
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();

****************************************************************



_______________________________________________________________________________________
Aqueca o seu Inverno com o credito pronto a usar!
Saiba mais em http://www.iol.pt/correio/rodape.php?dst=0701181

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list