XML API - pdx:addTextBox

pdx:addTextBox

Inserts text boxes into the Word document.

Note

You are reading the XML API documentation. For the PHP API method please go to addTextBox.

Description

Element definition

This element allows the insertion of a text box into your Word document.

Attributes and sub-elements

content

It may be a:

  • Word fragment or text string

boxParameters

The possible keys and values are:

Key Description
align center, left, right.
border Border width.
borderColor Hexadecimal value (#ff0000, #0000ff).
borderWidth value in points.
contentVerticalAlign top (default), center or bottom.
fillcolor Hexadecimal value (#ff0000, #0000ff).
height Height in points or 'auto'.
textWrap tight, square, through, none.
paddingBottom Distance in cm.
paddingLeft Distance in mm.
paddingRight Distance in mm.
paddingTop Distance in mm.
width Width in points.
Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: