----- Original Message -----
From: "Paul Black" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 9:07
Subject: [iText-questions] iText - Transparent Table Cells


> Hi,
> Does anyone know how to reset the (default) background color of a Table
> to transparent? I've set it like this, but want it back to the
> default...
>
>
>       myTable.setDefaultCellBackgroundColor(new Color(220,220,220));
>
> The reason for this is I have set a Watermark and I want the 'white'
> cells to allow the watermark to show through (behind the text).
>

Set it to null.

> Any advice, greatly appreciated.
>
> Cheers
> Paul
>
> PS On the subject of the Watermark I had to extend PdfPageEventHelper as
> the add command didn't produce a watermark that was behind the Table
> border graphics...it works, but I'm wondering if I'm doing it right!
>

You are doing it right. The Watermark class is in its way to deprecation.
The page event is more flexible.

Best Regards,
Paulo Soares

>
> **********************************************************************
> Visit our website at http://www.advocates.org.uk
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager. [EMAIL PROTECTED]
>
> This footnote also confirms that this email message has been
> swept for the presence of computer viruses.
> **********************************************************************
>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to