can anyone tell me, how to generate RTF files? iText dropped support for this format. And it looks like you can handle RTF files with pure Java. I found the RTFEditorKit. But I couldn't find any good documentation, that actually tells me, how to use it. I would like to use it as follows.

RTF WikiThere is a list of links to the specifications for the various versions near the bottom.I used a subset of it once years ago as an export format, but you can do so much layout with HTML these days, it's difficult to see the need to carry on with RTF. Only a subset is defined in Java and apparently not very well.Java RTF Bug ReportAnother bug report listing not-implemented features

Do you suggest to create the RTF source directly? Well this might be doable. But this really should be done behind the scenes on a nice API.

If the export format doesn't have to be WYSIWYG...I'd be tempted to generate a report template in word, with tag's where the content should go, save that as RTF and use it as a template. If the report format is fixed and you just need to put text into it, this is easy. If you need to dynamically generate tables, there's a bit more work, especially to control layout.You will still need to escape special characters of course.

We want to provide a report download in a web application which can be directly opened with M$ Word (yes, I know ). And we don't want to use PIO (for this).

There's as noted, html, pdf (but I take it open in word means open and edit it) and we have ODF and ooxml of which there should be api's around, http://www.javadocx.com/features which lists an lgpl version (no idea about the quality)

and as mentioned taking a premade document and adding some string replace sprikles also works wonders

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org