XML API - pdx:searchAndReplace
- 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
- addBookmark
- addBreak
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addStructuredDocumentTag
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteBlock
- modifyInputFields
- processTemplate
- rawSearchAndReplace
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
pdx:searchAndReplace
Searches and replaces a given string of text in a Word document.
Note
You are reading the XML API documentation. For the PHP API method please go to searchAndReplace.
Description
Element definition
This element allows the substitution of plain text in a DOCX document.
Attributes and sub-elements
src
The path to the source Word document.
target
The path to the Word document resulting after the text highlighting.
searchTerm
The string of text that you want to replace.
replaceTerm
The string of text that you want to include.
options
Key | Description |
---|---|
document | If true searches and replaces the string in the body of the document. The default value is true. |
endnotes | If true searches and replaces the string in the document endnotes. The default value is false. |
comments | If true searches and replaces the string in the document comments. The default value is false. |
headersAndFooters | If true searches and replaces the string in headers and footers. The default value is true. |
footnotes | If true searches and replaces the string in the document footnotes. The default value is false. |