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.
anchor [[pattern=]PatternText [,name=AnchorName] [,[scope=]SearchScope]
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. |
If file is specified, only anchor value is used. Such anchor can not be used for placement
The anchor command applies only to pages which containing searchable text (Data PDF). The anchor can not be found in Image files or PDF pages containing only faxed or scanned images (Image PDF).
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
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 |