This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes RTF to PDF transformation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "RTF to PDF transformation" Watch "RTF to PDF transformation" New topic
Author

RTF to PDF transformation

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
Hello

I want to write an application able to transform a RTF file into a PDF file.

I tried with IText, but the result was not very nice:

1 - I created a simple RTF file with "bla" as content with wordpad. The PDF file was generated with success.
2 - I created a simple RTF file with "bla" as content and using Word. The PDF file was generated but with several useless characters.

Anyway I read that IText for RTF stills under development, so it is not a solution.

Anyone knows how can I do such a transformation?

Thanks
Regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
AFAICT, the RTF part of iText is pretty much dead. But in any case, it can only create RTF, not read RTF, so its value for an RTF2PDF conversion is low.

If having OpenOffice installed is an option, then I'd look into the JODConverter library.


Ping & DNS - my free Android networking tools app
Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
Thanks for your answer.

I did not knew JODConverter. I will try it.

Thanks and regards
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RTF to PDF transformation