Do you mean for arbitrary HTML? That's tough. Any solution would probably start by changing the HTML into well-formed XML (using a library like TagSoup of NekoHTML), and then parsing that XML and creating the PDF as appropriate.
I'm new to Open Office.
Can you post more details about setup and Java code for Pdf generation, please?
I posted this on Open Office forum too.
posted 10 years ago
Using OO in server mode is decidedly non-trivial - the API has a steep learning curve. But I believe that the JODConverter library makes the process significantly easier, so you may want to look into that first.
Hey Imre Tokai....here are some tools you can use to convert HTML file to PDF file.
HTML to PDF Converter
A free online converter that will take any URL of a web page that is live on the web (without a password in front of it) and convert it to a PDF file.
This is a free online converter that will take a URL, an HTML file, or direct HTML input and convert it to a PDF file that is downloaded to your computer. It adds a footer to each page with a logo and advertisement.
*Total HTML Converter
This is a Windows program that you can use to convert web pages by URL or batches of HTML documents on the command line to PDF.
*Click to Convert
This is a Windows program you can use to convert HTML to PDF or PDF to HTML
I hope this will be usable for you. if you want to know more about HTML to pdf convertors, you can navigate to the following sites: