Task PDF - Replace Text
The PDF - Replace text Task finds a text or a regular expression in PDF files and replaces each match with another text.
The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.
Replace text: Main settings tab

-
Find (Replace ... group): the text to find, without quotation marks; required
Variables are supported.
-
Is regular expression: treats Find as a regular expression
-
Replace: the text that replaces each match
Variables are supported.
-
Password for file(s): the password that opens the source PDF files, if they are protected
-
Page range: All pages, or Pages with page numbers and ranges separated by commas, for example
2-4or1,3,5-6. An entry that is not a page number or a valid range is ignoredA page number larger than the page count raises an error.
File filter tab
The File filter tab selects the PDF files to change; see File Filter. If the filter has a Credential, the Task uses it while it reads and writes the files. When the logon with the Credential fails, the Task continues as the account that runs the Server and writes the error to the Server log.
Destination tab

-
Same file (Save to.. group): saves the changed file over the source file
-
Same folder but use file mask: saves the changed file in the folder set on the File filter tab, named by File mask
-
Different folder and use file mask: saves the changed file in Folder, named by File mask
-
Folder: the destination folder for Different folder and use file mask; click the folder button to browse
-
File mask: builds the new file name from the source file name, by the renaming standard set in Main - Settings
The default
*keeps the source file name.
Same file replaces the source file. With the default File mask *, Same folder but use file mask also replaces a source file that is in the File filter folder. A file that already has the new name is replaced without a prompt.
When Include sub folders is checked on the File filter, Same folder but use file mask saves every result in the File filter folder, not in the subfolder the source file came from.
Output and errors
The Task output contains "Success" for each file it saves. The file is saved even when nothing matches.