XML API - pdx:addMacroFromDoc

pdx:addMacroFromDoc

Imports a macro from another Word document.

Note

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

Description

Element definition

With the help of this element you can import the macros from an existing Word file.

You should create an instance of CreateDocx with the 'docm' option in order to obtain a functional Word document with macros as a result.

Attributes and sub-elements

src

The path of the Word document (.docm) from which you wish to import the macros.

Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code