Thanks Bruno for the hint ..
I have adjusted the PdfDocument.addElement() method for the TABLE case
(added last 3 lines):
if (cellsShown) {
Rectangle tablerec = new Rectangle(table);
tablerec.setBorder(table.border());
tablerec.setBorderWidth(table.borderWidth());
tablerec.setBorderColor(table.borderColor());
tablerec.setBackgroundColor(table.backgroundColor());
tablerec.setGrayFill(table.grayFill());
PdfContentByte under = writer.getDirectContentUnder();
under.rectangle(tablerec.rectangle(top(), indentBottom()));
under.add(cellGraphics);
// now again add the border for the table since it might have been
covered by cell backgrounds
tablerec.setGrayFill(0);
tablerec.setBackgroundColor(null);
under.rectangle(tablerec.rectangle(top(), indentBottom()));
}
Hope this change can be added to CVS and next version.
Thanks and kind regards,
Gerald.
----- Original Message -----
From: "Bruno" <[EMAIL PROTECTED]>
To: "Gerald Fehringer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 1:46 PM
Subject: Re: [iText-questions] table border in case of grayfill or
background color specified
> Quoting Gerald Fehringer <[EMAIL PROTECTED]>:
>
> > Hello Paulo!
> >
> > You are right, I'm using a normal Table.
> > Attached please find an example which shows what I mean.
> > I have specified a border of width 3 around the whole table. For cells
> > which
> > have a gray fill the table border is not shown, it only shows the cell
> > border.
>
> This is because the cellbackground is added AFTER the table graphics
> are drawn, so your cellbackground covers your table border.
> This is by design (in class PdfDocument). I don't know if it
> would break something if this was changed...
>
> Bruno
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions