Hi, I am trying to generate a document pdf from a file XML and want to add a truetype font to some tags. How I can do it?
Thanks.
Call FontFactory.getFont() before reading XML or one of the easy way is calling FontFactory.registerDirectories(). See the following samples.
http://www.ujihara.jp/iTextdotNET/examples/com/lowagie/examples/fonts/getting/RegisterFont.java http://www.ujihara.jp/iTextdotNET/examples/com/lowagie/examples/fonts/getting/UsingFontFactory.java http://www.ujihara.jp/iTextdotNET/examples/Chap0701.xml http://www.ujihara.jp/iTextdotNET/examples/Chap0702.cs
Log in to post a comment.
Hi,
I am trying to generate a document pdf from a file XML and want to add a truetype font to some tags. How I can do it?
Thanks.
Call FontFactory.getFont() before reading XML or one of the easy way is calling FontFactory.registerDirectories().
See the following samples.
http://www.ujihara.jp/iTextdotNET/examples/com/lowagie/examples/fonts/getting/RegisterFont.java
http://www.ujihara.jp/iTextdotNET/examples/com/lowagie/examples/fonts/getting/UsingFontFactory.java
http://www.ujihara.jp/iTextdotNET/examples/Chap0701.xml
http://www.ujihara.jp/iTextdotNET/examples/Chap0702.cs