rawSearchAndReplace

rawSearchAndReplace

ADVANCED / PREMIUM BASIC

Searches and replaces texts in any XML file of the document.

Description
public rawSearchAndReplace (string $document, string $finalDocument, string $searchTerm, string $replaceTerm)
Parameters

document

Source DOCX.

finalDocument

The destination path of the new file.

searchTerm

String to replace.

replaceTerm

New string.

Code samples

Example #1: