Abhishek Vinayaka wrote:
> Hi Experts,
> 
> We are in a Process to Evaluate the iTEXT Functionality of converting an 
> XML Document to a PDF Document.

OK.

> We could Find the Library,  com.lowagie.text.xml  From the API 
> Documentation.

That's not the best way to do it.
The best way to do it is described in the book "iText in Action".

> Is it possible that we have a Step by Step Description on how to Go 
> about the same?  Any Standard Way would be Helpful

There are several examples in the book.
All examples are available online here: http://1t3xt.info/examples/

> A simple XML to be converted could be
> <Employee>
>         <name>test</name>
>          <age>20</age>
> </Employee>
> To a PDF which would have the content
> Name             Age
> Test                20

Some (relatively) more complex XML samples are:
http://1t3xt.info/examples/resources/in_action/chapter06/studyprogram.xml
http://1t3xt.info/examples/resources/in_action/chapter09/say_peace.xml
http://1t3xt.info/examples/resources/in_action/chapter09/peace.xml
http://1t3xt.info/examples/resources/in_action/chapter14/romeo_juliet.xml
The resulting PDF documents look like this:
http://1t3xt.info/examples/results/in_action/chapter06/studyprogram.pdf
http://1t3xt.info/examples/results/in_action/chapter09/say_peace.pdf
http://1t3xt.info/examples/results/in_action/chapter09/peace.pdf
http://1t3xt.info/examples/results/in_action/chapter14/romeo_juliet.pdf
The source code for those examples can be found here:
http://1t3xt.info/examples/browse/?page=example&id=114
http://1t3xt.info/examples/browse/?page=example&id=147
http://1t3xt.info/examples/browse/?page=example&id=157
http://1t3xt.info/examples/browse/?page=example&id=230

DO NOT USE XmlReader, in your case it's not useful.

-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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