In the application I am developing, I need to create documents which can be exported to HTML, DOCX or PDF, according to the user’s preferences.
How can I do it using only free libraries in a reliable way? I’d rather not to have to generate each document by hand, but use some kind of template (e.g. XSLT)…
For PDF and HTML (and RTF but not DOCX) there is iText library.
For Docx there is Microsoft Office library.