Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting .RTF to .PDF in servlet? iText ?

843841Nov 24 2003 — edited Dec 1 2003
Hello, I need to find the best way to read in a .RTF file in a servlet and then convert that file to a .pdf and put it in a temp directory. The reason being is that my companies fax server software driver has some issues with converting .RTF files as attachments. I have looked for driver updates and no luck, so I am going to have to fix the problem on my end. I have downloaded the iText.jar lib and am a bit confused as to what it does. I have the manual but from what I have seen it seems like it is mainly for writing out to the screen. I know there is a PDFWriter class but I have only found info on it printing out to the screen, a paragraph at a time.

Once again, my problem is converting a .RTF file to .PDF in a servlet and writing that .pdf to a file dir. If anyone can give me any advise on iText (if it does what I am looking for and how to go about it), or any other direction, I would greatly appriciate it.

Thank you in advance,
Lance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2003
Added on Nov 24 2003
7 comments
1,009 views