HI all,
do we have code in java that can generate html content to pdf file and sends back browser.
please help out if there is anything that i can use to do it
Thanks kumar kasimala
HI all,
do we have code in java that can generate html content to pdf file and sends back browser.
please help out if there is anything that i can use to do it
Thanks kumar kasimala
This is the best way I found of how to convert HTML to PDF using open source API/Tools
Converting HTML to PDF using open source APIs/Tools
Apps used:
Apache FOP
A xhtml to fo stylesheet: xhtml2fo.xsl
HTMLCleaner
Also read: Convert HTML content to PDF format
I have used Apache FOP for this some years before. It works on an XML source like xhtml and can produce PDF and other output formats.
Try the PDF Converter services. It supports loads of formats including HTML and works from any Web Services capable environment including Java and .net.
Here are some examples:
Note that the articles may mention SharePoint a couple of times. Don't worry, the product is not tied to SharePoint, it just happens to be used a lot in that environment.
Big disclaimer, I worked on the product so I am obviously biased about how fantastic the product is :-)