XML API - pdx:clearBlocks

pdx:clearBlocks

Removes remaining BLOCK type variables from the Word document.

Note

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

Description

Element definition

The BLOCK variables are wrappers of content. They are used to remove unwanted parts of the document on "run time".

This method removes the remaining BLOCK variables that have not been already removed by the deleteBlock method, i.e. content that was not removed from the original template.

Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: