What do you mean by "merge" - append them? In word processing, merge generally means to fill in data into an existing document, not to combine two documents.
Joined: May 10, 2008
I meant append. I want to concatenate two RTF documents in a Java background thread.
Joined: Mar 22, 2005
OpenOffice -which can be run as a GUI-less server, and has a Java API to access it that way- should be able to import and append RTF files.
I'm not aware of a Java library for handling RTFs, though. But RTF has a pretty simple syntax. It's not hard to write a parser for it, and for a limited subset or RTF -if you can make such an assumption- it may be feasible to append two files by text manipulation.