This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Create rtf document from a template Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Create rtf document from a template" Watch "Create rtf document from a template" New topic
Author

Create rtf document from a template

Sunil George
Greenhorn

Joined: Apr 04, 2006
Posts: 18
I want to create rtf document letters in a given template using java code. The template is uploaeded to web server in rtf,.doc, or .pdf format. I want create the letters to multiple recipients in .rtf format and seave it in a temp location in web server,and can be open in a browser.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
This doesn't seem to have anything to do with Struts, so somebody will move it to a more appropriate forum.

There are some significant obstacles in solving what you describe. PDF is just about impossible to change in this way. Word is hard to work with; have a look at the POI or OpenOffice APIs to do that. iText can generate RTF, but I'm not aware of a library that can read, change and write RTFs in general. The AccessingFileFormats wiki page has further links on the subject.


Ping & DNS - my free Android networking tools app
 
 
subject: Create rtf document from a template
 
Similar Threads
How extract an rtf style data from a document
How to convert a webpage to MS. word
Extract a word document and storing in db
Create rtf document based on a template
Create rtf document based on a template