HeaderFooter header =
new HeaderFooter(new Phrase("test", new Font(bf_times)), false);
header.setAlignment(Element.ALIGN_CENTER);
header.setBackgroundColor(new Color(0xB5091E));
document.setHeader(header);
I want to set the Font color for test
to white (FFFFFF
)
The Font is the class holding the color.
Font font = new Font(bf_times)
font.setColor(Color.WHITE);
This should do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With