• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

RTF to PDF transformation

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Paulo Carvalho
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your answer.

I did not knew JODConverter. I will try it.

Thanks and regards
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
Master Gardener Program
https://coderanch.com/t/771761/Master-Gardener-Program
reply
    Bookmark Topic Watch Topic
  • New Topic