Quoting [EMAIL PROTECTED]:

> I would like to utilize XMLWriter to build xml for a pdf.  A section of the
> pdf will be derived from html.  I would like to utilize HTMLParser and add
> the HTML as a section.  My current code looks like
>       XmlWriter.getInstance(document, msbout, "/itext.dtd");
>       document.open();
>       HtmlParser.parse(document, "Chap0702.html");
> I need to be able to add multiple sections, with one being populated with
> the HTML.

You need to extend the Handler class and make sure
the document isn't opened or closed while parsing.
In Chapter 12 of the tutorial, you have an example
where the close doesn't happen: other text is added
after the final root tag.

br,
Bruno


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to