How can i complete this code?

Is there any example? Or a post about it?

--
M. ONUR CANCI


2009/9/17 Howard Shank <hgsh...@yahoo.com>

> As stated many times before, this code is incomplete at this time.
>
> Regards,
> Howard Shank
>
>  ------------------------------
> *From:* Onur Canci <onur.ca...@gmail.com>
> *To:* iText-questions@lists.sourceforge.net
> *Sent:* Thursday, September 17, 2009 4:22:32 AM
> *Subject:* [iText-questions] Help about converting RTF to pdf
>
> Hi everyone,
>
>
> I'm trying to convert RTF string to the part of PDF file which will contain
> some texts.
> I can create PDF files but when i come to embedding RTF file to PDF i'm
> having problems.
>
> First i searched for RTF conversion with Itext and found some samples.
> Than i tried to parse a simple RTF file with RTFParser class but it always
> give me NullPointer Exception.
> My code block is below :
>
>
> InputStream is = new ByteArrayInputStream( getValue().getBytes() );
>
> RtfDocument document = new RtfDocument();
> document.open();
> RtfParser parser = new RtfParser(null);
> parser.importRtfDocument(is, document);
>
> What's wrong with this code? If you give me some advice about how to import
> and convert
> RTF string into part of IText generated PDF file i'll be grateful to you.
>
> Thanks,
> --
> M. ONUR CANCI
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to