XmlApi - pdx:addBackgroundImage

pdx:addBackgroundImage

Inserts a background image into the Word document.

Note

You are reading the XMLAPI documentation. For the API method please go to addBackgroundImage.

Description

Element definition

This element allows to insert 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.

Attributes and sub-elements
Key Description
src File path
Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: