Hi,
I have to convert an html page to pdf.However some items on the pdf should look
different from the ones on the html page.
To do this I am using a subclass of HtmlTagMaps where I override some tag properties
like the font size for <H3>,<b> etc.
There is another requirement about tables.The table rows on the html do not have
alternate colors(dark light),however on the pdf I have to make the alternate rows
have dark and light background colors.
I want to do this by subclassing SaxMyHtmlHandler and overiding the
handleEndTags method,where I would like to do something like
if (Table.isTag(name)){
// set dark and light background colors for alternate rows.
}
else{
super.handleEndingTags(name);
}
But the problem is that the endElement() method in
SAXmyHtmlHandler calls super.handleEndingTags(name)
instead of just calling handleEndingTags(name);
As such the overridden method in the subclass never gets called.
Is tha above call intentional or a bug.
The strange part is that startElement() calls
handleStartingTags() and not super.handleStartingTags()
Please advice me on how to proceed.
Sunil Naik,
BB22 IBUR-40B
Buckhauserstrasse 22
Postfach
8098 Zurich
Tel. +41-1-2345146(O)
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions