Basha Shaik, J. (Jani) wrote: > Hi Bruno, > I have problem in creation of PDF using XML. I am just following > the example given in _http://www.lowagie.com/iText/tutorial/ch07.html.
I really must remove that old tutorial. > I am trying to merge data from database with the xml file. > I am able to merge the data but not able to align the data. I am not > able to apply any formating properties on the merged data. Look at how I changed the XML > Example: > <letter> <paragraph> > To: <mail /> <newline /> > Ref: your website <newline /> <newline /> > Hello <givenname /> , <newline /> <newline /> > I visited your website a while ago ( <website /> ) and I saw you > added a link to iText, my free JAVA-PDF library. So I thought to myself, > hey, I'm going to send mr <name /> > > a little mail to thank him. If you want to I can also add a link > to your site on the iText links-page. Just let me know, <newline /> > <newline /> kind regards, </paragraph> > <paragraph font="Times" align="Right"> Bruno Lowagie</paragraph> > </letter> In other words: add an extra paragraph tag to organize the first part that is left aligned, and your problem is solved. > Also I need help on Font/encoding to display Japanese letters. Now in > this XML I have to put Japanese Characters. In xml, they are fine to > display. But I am not able to display the characters in PDF generated. That's because the font you are using doesn't have the Japanese glyphs. In the iText book, there's an example where I take this XML: http://itext.ugent.be/itext-in-action/examples/chapter09/resources/peace.xml and convert it to this PDF: http://itext.ugent.be/itext-in-action/examples/chapter09/results/peace.pdf As you can see, some words are not shown because a necessary font is missing. The Hindi translation of the word is shown incorrectly because iText doesn't support Hindi ligatures. iText has no problems with Chinese, Japanese, Korean,... br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
