- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- docxSettings
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
pdx:replaceVariableByWordFragment
Replaces placeholder variables by fragments of Word.
Description
Element definition
This powerful element allows the substitution of placeholder variables by Word fragments that may include:
- formatted text
- tables
- images
- charts
- footnotes
- ...you name it :-)
This element offers you complete control over the contents of the generated Word document. Moreover it is fully compatible with the PDF conversion plugin.
Attributes and sub-elements
variable
This must be an element with the name of the placeholder template variable and the WordFragment element that should replace it.
options
key | Description |
---|---|
firstMatch | If the variable appears more than once within the Word document and firstMatch is set to true, xmldocx will only replace the first ocurrence of the variable within the Word document. |
target | Possible values are: document (default), header, footer, footnote, endnote, comment. This option sets the scope of the replacement procedure. |
replaceType | Possible values are:
|