The current HtmlWriter doesn't support writing out the code necessary to
produce borders for an html table.
For instance if cell is part of a table, cell.setBorder(Cell.LEFT); doesn't
do anything. Can we add the following code in the CELL case of the switch
in HtmlWriter.write(). It goes before the call
writeMarkupAttributes((MarkupAttributes)cell); on Line 790
if(cell.border() != Cell.NO_BORDER){
String borderStr = "";
String borderColor = "";
if(cell.borderColor() != null)
borderColor = HtmlEncoder.encode(cell.borderColor());
if((cell.border()&Cell.LEFT) > 0){
borderStr += "border-left: " + cell.borderWidth() + "px solid "
+ borderColor + ";";
}
if((cell.border()&Cell.RIGHT) > 0){
borderStr += "border-right: " + cell.borderWidth() + "px solid "
+ borderColor + ";";
}
if((cell.border()&Cell.TOP) > 0){
borderStr += "border-top: " + cell.borderWidth() + "px solid " +
borderColor + ";";
}
if((cell.border()&Cell.BOTTOM) > 0){
borderStr += "border-bottom: " + cell.borderWidth() + "px solid
" + borderColor + ";";
}
cell.setMarkupAttribute(MarkupTags.STYLE,borderStr);
}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions