Skip to main content
The Static Text element has the following properties in the What to search for section:

Text to find

Text to find determines the method used to specify search text.
  • Entered manually is selected by default and allows you to enter your search text in the box below. You can either type in your search text or paste it from the document image by clicking the recognized words or by drawing an area that contains the text that you want to find. You can specify multiple single- or multi-line text variants. The syntax is described below.
  • From User Dictionary allows you to use a TXT file as the source of search text variants. You will need to select a desired TXT file in the Dictionary drop-down list.

Additional Properties

  • Allow multiple lines allows/disallows the detection of text that is written over several lines.
  • Allowed errors specifies the maximum percentage or number of characters that do not match text to find.
  • Search for parts of words allows/disallows the detection of other words containing the word being searched for. For example, if “contract” was specified in the Text to find box and the document contains the word “contracts,” enabling this option will detect the word “contract” inside “contracts.” Otherwise, the word “contract” will only be detected where it appears as a standalone word.

Advanced Properties

  • Take spaces into account allows spaces in the search string. If this option is not selected, spaces will be removed from the search string. Ignoring spaces makes the search faster. However, if the phrase you are searching for may be split over multiple lines or if some words in the phrase may be missing, you need to enable the Take spaces into account option and type in your search phrase preserving the spaces.
  • Allow missing words allows missing words in the phrase and allows setting a penalty for missing words. The penalty is a number from 0 to 1. The quality of the hypothesis will be multiplied by this number as many times as there are missing words in the phrase. If some words may be absent in the phrase, set this parameter to 1 (multiplying the quality of the hypothesis by 1 will not downgrade its quality).
  • Max. space length allows specifying the maximum length of the space inside the detected object.
  • Match case enables case-sensitive search, making the program distinguish between small and capital letters.
  • Text orientation allows specifying the orientation of the text you’re looking for. By default, the activity only looks for text oriented horizontally and won’t formulate a hypothesis for rotated text. If you need to find the text rotated in a specific way and ignore the text written in any other direction, you should select only the Clockwise or the Counter-clockwise option. To find text regardless of its orientation, you should enable all available options.
To display advanced properties, click the advanced mode icon on the Properties pane.

Searching for text variants

Single-line variants

If the text being searched for differs from document to document, add several possible variants of the text to Text to find, putting each variant on a new line. For example, if forms of the same type can contain different headings like “Contract,” “Rental Agreement” or “Agreement,” you should specify the following in Text to find: Contract Rental Agreement Agreement Note: When pasting text from the document image, each variant will be placed on a new line automatically.

Multi-line variants

If the search text can be split over several lines, enable the Allow multiple lines option. Be sure to enclose each variant in curly brackets { }. For example, if documents of the same type can have different headings like “Contract,” “Rental Agreement” or “Agreement” and the heading “Rental Agreement” can be split over two lines, specify the following variants in the Text to find box: {Contract} {Rental Agreement} {Agreement} You can also draw an area that contains several lines of text. In this case you will be prompted to enable the Allow multiple lines option. When you enable this option, Advanced Designer will automatically prompt you to put curly brackets around each variant. Curly brackets will not be considered as part of the search text. Advanced Designer will also add curly brackets to any text you paste from the image. If you then choose to clear this option, Advanced Designer will prompt you to delete the curly brackets.

Phrase variants constructed from words

You can also specify phrase variants in the Text to find box using ”|” (the OR operator). For example:
{RENTAL|LEASE AGREEMENT|CONTRACT} {CLIENT|PARTNER STATEMENT}
In this example, the program will look for the following phrases: rental agreement, rental contract, lease agreement, lease contract, client statement, and partner statement. Note that each phrase variant should be placed in curly brackets and all opened brackets must be closed.

Using a text file

Instead of adding search text variants into the Text to find box, you can list them in a TXT file. Each search text variant should be placed on a new line. You can use the OR operator as described above. If the text placed on one line in the dictionary may be split over several lines on the document, enable the Allow multiple lines option. Do not enclose the variants in curly brackets, as they would be considered as part of the search text. To upload the file you prepared, click the more icon on the toolbar and select User Dictionaries. In the dialog box that opens, click the add catalog icon, change the displayed file type to TXT, navigate to the file you want to upload, and click Open. To view and edit a user dictionary, select it and click the edit catalog icon. To use the uploaded TXT file as the source of text variants, select the From User Dictionary option and then select the uploaded file from the Dictionary drop-down list.