RTF to PDF conversion is is development ad not functional at this time.

Regards,
Howard Shank



----- Original Message ----
From: Adam Sas <[EMAIL PROTECTED]>
To: itext-questions <[email protected]>
Sent: Thursday, August 21, 2008 3:41:17 AM
Subject: [iText-questions] RFT into PDF import


Hello,

I am new to iText but I urgently need to import
some rtf text and add it to the newly created pdf file. I can't find
necessary information how to use RtfParser. Are there any tutorials on
that topic ? (except API documentation). Moreover, I found on the
Internet that there are some problems importing rtf into pdf - I used
code like this:

            Document document = new Document();
            PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream("c:/HelloWorld.pdf"));

            RtfWriter2 rtfWriter = RtfWriter2.getInstance(document, new 
FileOutputStream("c:/testRtf.rtf") );
            document.add(new Paragraph("Hello World made by Adam Sas. ąę揯Ɵż 
ABCDEF" ));
            
            RtfParser parser = new RtfParser(document);
            
            RtfDocument rtfDocument = parser.getRtfDocument();
            FileInputStream readerIn = new FileInputStream("c:/test2.rtf");
            parser.convertRtfDocument(readerIn, document);

In output files I get a lot of extra characters (probably formatting 
information read from test2.rtf file). Are there any ways to solve this problem?

Best regards, 
Adam Sas


      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to