anchor

Specifies the text pattern to search for on the page or in the file.  The location of the pattern can be used to place barcode and text elements on the page.  The string that follows the search pattern (anchor value) can be used in value property of subsequent barcode, text or replace commands.

Syntax

anchor [[pattern=]PatternText [,name=AnchorName]  [,[scope=]SearchScope]

Parameters

PatternText

Pattern to search for in the PDF text (see Anchors).  Explicit or implicit (first position) value.
See format of PatternText in Anchor variables.

AnchorName

If specified, then it is the explicit anchor name.  If not specified, the anchor name is derived from the PatternText

SearchScope

Defines how the anchor PatternText is searched for.   Optional explicit or implicit (by valid value) value.  Valid values:

page Search the current page only (Default)
file Search in the entire file.

Notes

Examples

Specify anchor with value.  Use pattern text as anchor name.

anchor “ID=${}”

Specify anchor with value.  Use name other than pattern text.

anchor “ID=${}”, name=UserID

Specify anchor without value to be used for placement only.  Pattern uses prefix and suffix.

anchor “##Place1##”

Specify anchor value to be searched for on all file pages.

anchor “OrderID=${}”, scope=file

Syntax legend
 

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