胡毅广 wrote:

> In
> *Chapter 7: XML and (X)HTML of Itext Tutorila*
>
> * *
>
> * *
>
> to parse an XML file and generate the corresponding PDF :
>
>
> // step 3: we create a parser and set the document handler
> SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
>
> // step 4: we parse the document
> parser.parse("Chap0701.xml", new SAXiTextHandler(document));
>
> But if I want to use a custom font in generating the PDF,how can I do?
>
You have to subclass the SAXiTextHandler.
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to