Code sample:
var headerRowBackground:RGBColor = new RGBColor(0);
headerRowBackground.b = 58;
headerRowBackground.g = 28;
headerRowBackground.r = 255;
printPDF.beginFill(headerRowBackground);
printPDF.addCell(30, 20, "Room");
The word “Room” is in red, as is the rest of the text in the PDF. I actually want to make the cell background colour red. Anybody know why this doesn’t work?
The documentation is wrong, the fill parameter is described as “Link can be internal to do document level navigation (InternalLink) or external (HTTPLink)”.
The code to get this working is:
A couple of things about the code:
rather than the fill value. It just
either switches on or off the fill
value previously set.
should be set too otherwise the text
and background will use the same
colour