Reputation: 39887
I was looking at using iText to create both a pdf and html version of a document with RTF as a possible option. According to this question this is no longer possible with iText. Is there a library that will allow me to create a document in Java and output it as both PDF and HTML? The ability to output RTF would be nice but is not required.
Upvotes: 0
Views: 1385
Reputation: 6581
You could also try Docmosis since that supports the output formats provided by OpenOffice (including the ones you specified) and you can often do the job with a lot less code.
Upvotes: 0
Reputation: 597096
JasperReports. If you look at this package it supports export to:
You have two options to create the documents:
Note that even though JasperReports's main function is to create reports, it can very well create other documents, with no tabular data for example.
Upvotes: 1
Reputation: 3185
I have used PD4ML to convert HTML to pdf. Even though it is a commercial app. It is very reliable and supports CSS well.
Upvotes: 1
Reputation: 59983
As that answer to the other question states, you can just use the iText RTF Library.
Upvotes: 1