• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a way to merge 2 RTF document?

 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to merge 2 RTF document?
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manually?
If yes then on Microsoft Word 2003 while saving a file you get an option to merge it with an existing file.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I meant append. I want to concatenate two RTF documents in a Java background thread.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic