Quoting NITISH <[EMAIL PROTECTED]>:

> Hi
> How could we pass a exesting file in the Paragraph.
> eg 
> In the Article "Dynamically Creating PDFs in a Web Application"  i have seen
> a program in which "Hello World " is passed in the Paragraph 
> "document.add(new Paragraph("Hello World"));".This Hello Wrold is printed in
> the PDF thus generated.
> I want to pass a file to the application and get the content of that file in
> the PDF form .How to do this ? I am new to this API.
> Could Any one help me in this.

http://www.lowagie.com/iText/faq.html#preformattedtext
You need to read the file into a String first and put that
into a Paragraph. The FAQ entry is focused on other encodings.
If your file is plain ASCII, it's very simple.
Of course you can't convert Word docs/rtf/binary formats
to PDF this way.
br,
Bruno


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to