Replaces existing text on a page with a new text.
To replace specified text.
replace [from=]FromText, [to=]ToText
To replace pattern and value of an anchor (which was previously defined)
replace target=AnchorName, [to=]ToText
FromText
Text to replace. Explicit or implicit (first position)
ToText
New text. If empty sting FromText is deleted. Explicit or implicit (second position)
AnchorName
Name of the anchor specified in anchor command
ToText or FromText containing space or comment characters (# or //) must be enclosed by quotes.
Replace command replaces all occurrences of FromText on a page. The FromText can be a separate paragraph or it can reside in the middle of a sentence.
ToText uses the same fonts as FromText.
ToText is left-aligned with FromText. Commands may change formatting of PDF pages if ToText and FromText require different amount space on a page.
replace command applicable only to input and output pages containing text (Data PDF). Text can not be found in Image files or PDF pages containing only faxed or scanned images (Image PDF).
Add a value of variable after from text.
replace “User:”, “User: ${UserName}”
replace to=“User: ${UserName}”, from=“User:”
Replace anchor text.
anchor pattern=”Date=${}”
replace target=Date, ${comp.$date}
Replace anchor text using FromText format (same as above)
anchor pattern=”Date=${}”
replace ${Date.text}, ${comp.$date}
Format |
Meaning |
Italic |
Information
that the user must supply |
Bold |
Elements that the user must type exactly as shown. |
Between brackets ([]) |
Optional
items |
Ellipsis (...) |
Parameter that can be repeated several times |