setBackgroundColor

setBackgroundColor

TRIAL / ADVANCED / PREMIUM

Sets the background color of the Word document.

Description
public setBackgroundColor ( string $color )

This method allows you to modify the background color of your Word document.

Parameters

color

Hexadecimal color value: FFFF00, FA0000, 4578AA.

Code samples

Example #1

The resulting Word document looks like: