[EMAIL PROTECTED] wrote:

It would be great if the HtmlParser class could take a "PdfContentByte" object (or a similar reference) where the content is a placeholder (instead of a whole "document" as it is now) to effectively position the html output generated from the parser into this specific location.

I wouldn't use HtmlParser for that.
I'd use HtmlWorker to parse an HTML snippet
into an ArrayList of iText objects, then add all these
objects to a ColumnText object and position this
ColumnText so that it fits the placeholder.
It's all there in iText; there is no need for a feature
request. You have to specify how you want the
HTML to be rendered (styles), you have to specify
the behavior of the ColumnText if the text doesn't
fit the placeholder, etc...
There are too many thing that depend on choice
that have to be made by the developer to turn this
into a new iText method.
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to