Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Java API

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

What Java APIs are available that can convert RTF to PDF directly.
I have checked JFO API and FOP API.

About Open Office API.does that require Open Office installed on the system

Thanks,
Ankit
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the OO API requires OO to be installed. The good news is that http://www.artofsolving.com/opensource/jodconverter makes document conversion using OO much easier than it would otherwise be.

I'm not aware of any other Java library that can convert arbitrary RTF files to PDF. Check out http://www.rtf-to-xml.com/rtf-to-pdf.html for a commercial solution.
 
Ankit Saxena
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks,

but we don't have OpenOffice on our system. and cannot install that also.

any other option.
Its very urgent
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaCC is a parser generator for which an RTF grammar is available. If your RTF files are comparatively simple (in other words, they use only a limited subset of all of RTF's capabilities), then it shouldn't be too hard to make that parser emit PDF (by hooking it up to the iText library).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!