0

Hi,

I am trying to create document using iText. I am using Eclipse IDE. I've imported the jar files (itextpdf-5.2.1.jar and itext-xtra-5.2.1.jar).

However RtfWriter2 is not being recognised as a class.

        Document doc = new Document();
        RtfWriter2 writer = new RtfWriter2();
        RtfWriter2.getInstance(doc,new FileOutputStream("testRTFdocument.rtf"));

Can someone help me in figuring out what I am missing. I am very new to iText.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by anuj_sharma
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.