Convert rtf file to pdf file

Posted on 2006-04-03
Last Modified: 2008-02-01
Hi all,

I have a jsp page to generate a report and save it as a rtf file and show it on the page. Is there a way to convert the rtf file to a pdf file and show it on the page? I know that there are some programs that can convert files to pdf files. But I need it to be done automatically with java codes. Thanks.
Question by:CodeLover
    LVL 29

    Accepted Solution

    Yes you can use iText
    LVL 35

    Expert Comment

    iText AFAIK can't convert RTF to PDF:


    But have no fear CodeLover, as instead of generating an RTF, you can use the library linked to by bloodredsun to generate a PDF instead...

    So just skip the RTF stage ;-)


    PS:  No points for me, bloodredsun's answer is the way to go :-)

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    It can often be challenging to stay relevant in the rapidly evolving world of technology. This can make recruiting talent difficult for companies of all sizes.
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now