• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create rtf document based on a template  RSS feed

 
Sunil George
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I am working on a Java based applivation. I want to write a rutine to create letters in rtf format based on a template. The template contains text in different font and font style. The template contains fields like <Name>, <Address> <Salutation> which will be replaced by the values in java objects which get from data base. At a time it need to create multiple letters based on this template. Could you suggest a way to do it? Or give any examples?

Thanks in advance

Sunil George
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part are you having problems with - parsing a file containing template markup, creating RTF files, or writing to multiple files at a time?
 
Sunil George
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want help in parsing the template markup and creating the rtf
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The iText library can create RTF files (and PDF and HTML).

What is your question about the parsing? What do you have so far?
[ May 19, 2006: Message edited by: Ulf Dittmer ]
 
Manesh Kumar
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also try out Apache FOP, which creates files in various output formats including RTF, PDF from XML using XSL.

Apache FOP
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!