By Date: <-- -->
By Thread: <-- -->

Font Issue with xml to pdf



Hello All,

We are creating a tool which generates an xml document. This xml document is
rendered by itext as pdf.

We are facing an issue that the fonts which we specify are not rendered
correctly. Itext seems to be using the same font always irrespective of what
we specify.

Could you please let us know if this is an issue and how to work around it.

Regards,
Abhishek.
 
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE ITEXT SYSTEM 'http://itext.sourceforge.net/itext.dtd'> 
<itext>

<paragraph leading='18.0' font='unknown' align='Default'>This is the unknown</paragraph>

<paragraph leading='18.0' font='arial' align='Default'>This is the arial</paragraph>

<paragraph leading='18.0' font='courier' align='Default'>This is  Courier</paragraph>

<paragraph leading='18.0' font='Helvetica' align='Default'>This is  Helvetica</paragraph>



</itext>
Document document = new Document();
            PdfWriter.GetInstance(document, new FileStream("testing.pdf", FileMode.Create));
            XmlParser.Parse(document, "testing.xml");
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions