addBackgroundImage

addBackgroundImage

TRIAL / ADVANCED / PREMIUM

Inserts a background image into the Word document.

Description
public addBackgroundImage ( string $src )

This method allows the insertion of a background image into a Word document.

The image can have the following extensions:

  • jpg or jpeg
  • png
  • gif

A background image does not behave exactly like a watermark but like a standard HTML background image: it tiles the entire background.

Parameters
Key Type Description
src string File path
Code samples

Example #1

The resulting Word document looks like: