# Anchors

**Anchors** are blocks in the processed document that the Robot uses to determine where specific data is placed within the document.

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-ae361ef3be8dd1f16dccb1fa3dee7e4a59b40271%2Fimage%20(50).png?alt=media" alt=""><figcaption></figcaption></figure>

Anchors define the boundaries of certain Attributes. There can be an unlimited number of Anchors, depending on the type of document.

## Tools for Working with Anchors

When creating a new Anchor, a list of properties and tools for working with the Anchor opens on the workspace panel.

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-aba62f623dc5420b0cf7b557595c094128aa4a22%2F2025-10-01_16-54-35.png?alt=media" alt=""><figcaption></figcaption></figure>

The main tools for working with Anchors:

<table data-header-hidden><thead><tr><th width="53"></th><th width="143"></th><th></th></tr></thead><tbody><tr><td><strong>No.</strong></td><td><strong>Tool</strong></td><td><strong>Description</strong></td></tr><tr><td>1.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-15201dec4efa417be0850b6b3dc54fff10cb5cdb%2Fimage%20(52).png?alt=media" alt=""></td><td><p>Allows you to add a new Anchor.</p><p>The button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-2174b562669f5c87a55735b3f1f064f272e4815e%2Fimage%20(53).png?alt=media" alt=""> allows you to add a new subordinate Anchor; you need to select the property “New subordinate anchor” from the list.</p></td></tr><tr><td>2.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-4c92265d7b7373314bc57602121a6e672e09b3cb%2Fimage%20(54).png?alt=media" alt=""></td><td>Allows you to move the Anchor up.</td></tr><tr><td>3.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-1f0b99ec1ccbd12ccae483d074f4b4d16fe3505c%2Fimage%20(55).png?alt=media" alt=""></td><td>Allows you to move the Anchor down.</td></tr><tr><td>4.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-1111ba5dcbb763d0b626baa63ac7582733f93cac%2Fimage%20(56).png?alt=media" alt=""></td><td>Allows you to copy the selected Anchor and automatically add a new Anchor with the specified settings.</td></tr><tr><td>5.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-740012e9fb37f604ee0dccb758c2df85f6f21751%2Fimage%20(57).png?alt=media" alt=""></td><td>Allows you to delete the selected Anchor.</td></tr><tr><td>6.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-d61eeb78b228cfdba0556b529b79d895900c8b65%2Fimage%20(58).png?alt=media" alt=""></td><td>Allows you to add a new binding to the selected Anchor.</td></tr><tr><td>7.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-803c1e75d7a89624a2cb1c94a1d42904f7ecedf3%2Fimage%20(59).png?alt=media" alt=""></td><td>Allows you to delete the selected binding.</td></tr><tr><td>8.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-f730fa8fd624801db6b8ae4aa0efe16342e45883%2Fimage%20(60).png?alt=media" alt=""></td><td>Allows you to move the binding up.</td></tr><tr><td>9.</td><td>button <img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-43e77ec85bb1530cbeed075960b72769dc0aab9a%2Fimage%20(61).png?alt=media" alt=""></td><td>Allows you to move the binding down.</td></tr></tbody></table>

## **Anchor Settings**

Anchor settings parameters:

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-2132817973a93aab2b0b3576e379ee9d6c7c3828%2Fimage%20(62).png?alt=media" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="53"></th><th width="175"></th><th></th></tr></thead><tbody><tr><td><strong>No.</strong></td><td><strong>Parameter</strong></td><td><strong>Parameter Value</strong></td></tr><tr><td>1.</td><td>ID</td><td>Anchor identifier. Assigned automatically.</td></tr><tr><td>2.</td><td>Anchor bindings</td><td>List of anchor bindings.</td></tr><tr><td>3.</td><td>Type</td><td><p>Type of Anchor. Selected from the dropdown list:</p><ul><li>Text – text;</li><li>Table – table or table cell;</li><li>Packet – a packet of interchangeable Anchors (when binding to this Anchor, its subordinate Anchors will be taken, with the first being the Anchor successfully found from the list).</li></ul></td></tr><tr><td>4.</td><td>Value</td><td><p>Value of the Anchor.<br><br>For the Anchor of type “Text”, wildcard characters can be specified: <code>(*)(?)</code>.<br></p><p>For the Anchor of type “Table”, the value is recorded in the format:</p><p>“Table index:Row index:Column index”</p><p>Example for the Anchor of type “Text”:</p><p><code>“*region* insur*”</code></p><p>(two words when “Separate words” is enabled)</p><p>Examples for the Anchor of type “Table”:</p><p><code>“0:1:2”</code></p><p>(table 0, row 1, column 2)</p><p><code>“1:2”</code></p><p>(table 1, row 2)</p><p><code>“2”</code></p><p>(entire table 2)</p></td></tr><tr><td>5.</td><td>Operation mode</td><td><p>Operation mode of the Anchor.<br><br>Possible values:</p><ul><li>Default – Anchor is required on the first page of a multi-page document;</li><li>LastPage – Anchor will be required in a multi-page document and will indicate the last page;</li><li>Optional – optional Anchor. If it is not found on the page, no error is generated.</li></ul></td></tr><tr><td>6.</td><td>Value check mode</td><td><p>Select the value check mode.<br><br>Possible values:</p><ul><li>Default (default);</li><li>EveryWordContains (checks each word in the value as a substring in the string. Example: <code>“test” => ”*test*”</code>);</li><li>RemoveNonWordSymbols (removes all non-numeric and non-letter symbols during the check).</li></ul></td></tr><tr><td>7.</td><td>Separate words</td><td>The value of the Anchor is split into words, and each word is searched separately.</td></tr><tr><td>8.</td><td>Ignore case</td><td>When this setting is enabled, case sensitivity will be ignored.</td></tr><tr><td>9.</td><td>Number of blocks</td><td>If the “Separate words” setting is enabled, there may be a situation when multiple block values corresponding to the specified words can be found in the given area during the Anchor search.<br><br>This property allows limiting the maximum number of words between blocks.</td></tr><tr><td>10.</td><td>Check block positions</td><td>When this setting is enabled, the position of blocks is checked relative to the Y coordinate, and blocks with the smallest value are taken.</td></tr><tr><td>11.</td><td>Reverse search</td><td>When this setting is enabled, the Anchor search will proceed from the bottom of the page.</td></tr><tr><td>12.</td><td>Capture nearby blocks</td><td>Capture of nearby Anchor blocks.<br><br>Allows capturing nearby blocks from the already captured value in the Anchor.<br><br>For example, if you specify <code>+2-1</code>, then 2 blocks to the right and 1 block to the left will be added to the already captured Anchor.<br><br>This property can be used when it is not possible to establish a complete stable value for the Anchor, but part of it has a stable value.</td></tr><tr><td>13.</td><td>Image percentage</td><td><p>The percentage of the image in which the Anchor search will be conducted.<br><br>The value must be recorded as a single number or two numbers separated by a dash.<br><br>For example:</p><p>30 (0-30) - 0-30% of the image will be used;<br>30-70 - part of the image will be used;<br>70-100 - the lower 30% of the image will be used.</p></td></tr><tr><td>14.</td><td>Description</td><td>User description of the Anchor.</td></tr><tr><td>15.</td><td>Subordinate anchors</td><td><p>Anchors that directly depend on the parent Anchor.<br><br>The search for subordinate Anchors will only occur after the main/parent Anchor has been found.<br><br>If:</p><ul><li>the parent Anchor settings specify the Optional mode (i.e., the Anchor is not required),</li><li>the parent Anchor was not found,</li></ul><p>the search for subordinate Anchors will not be conducted, and the Anchors will be skipped.<br><br>This parameter is used if the Attribute is located in the middle of a multi-page document.</p></td></tr></tbody></table>
