How to set a background color of a Table Cell using iText?
Posting, in hopes someone else will find this response useful.
It seems one can create a new BaseColor
from WebColor as:
BaseColor myColor = WebColors.GetRGBColor("#A00000");
Which then can be added as a background as:
cell.setBackgroundColor(myColor);
Lots of options.
BaseColor color = new BaseColor(red, green, blue); // or red, green, blue, alpha
CYMKColor cmyk = new CMYKColor(cyan, yellow, magenta, black); // no alpha
GrayColor gray = new GrayColor(someFloatBetweenZeroAndOneInclusive); // no alpha
There's also pattern colors and shading colors, but those are Much Less Simple.