This example may help you:

http://cvs.apache.org/viewcvs.cgi/xml-
fop/examples/embedding/java/embedding/ExampleDOM2PDF.java?rev=1.9


--- "Rodrigo Reyes C." <[EMAIL PROTECTED]>
wrote:

> Does anyone out there has some code to translate a
> org.w3c.dom.Document 
> object to PDF? I would like to keep the PDF data in
> memory, not a file. 
> Thanx in advance...
> 
> Rodrigo
> PS. I have this code but it doesn't seem to be
> working...
> 
>         Driver driver = new Driver();
>         driver.setRenderer(Driver.RENDER_PDF);
>         driver.setOutputStream(new
> FileOutputStream(targetFilename + 
> ".pdf"));
>         driver.render(doc);
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to