Please use the mailing list instead of my personal address.
[EMAIL PROTECTED] wrote:
ok. you are right but i would like to know only : how can i embed a font (cyrillic) in a pdf using only a template xml ? can you send me an example? i want to use only xml and dtd itext.dtd. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE itext SYSTEM "itext.dtd"> <itext> <paragraph font="comic" > компания РМ может продукции в более чем стран ми </paragraph> </itext>
How should iText know where to find the font named 'comic'? Did you register the name 'comic' with the FontMapper so that it points to the location of comic.ttf? I have plenty of examples with other languages in XML, for instance: http://itext.ugent.be/itext-in-action/examples/chapter09/resources/say_peace.xml http://itext.ugent.be/itext-in-action/examples/chapter09/results/say_peace.pdf http://itext.ugent.be/itext-in-action/examples/chapter09/resources/peace.xml http://itext.ugent.be/itext-in-action/examples/chapter09/results/peace.pdfBut all these examples involve written your own SaxHandler (not just using XmlParser).
Maybe somebody else has a ready-to-use example that explains how to map comic to the correct font file in the context of XML to PDF conversion. br, Bruno
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/