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.
Joined: Mar 22, 2005
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.