Skip to main content
The functions listed in the following table can only be used in the Advanced pre-search relations section. Each function specifies a fuzzy rectangle for the search area or adds rectangles to an array of excluded rectangles.
You can use the RSA alias instead of the full name RestrictSearchArea.
Different constraints for the same page are used jointly, and for different pages independently. (The search is performed on the pages for which at least one constraint has been specified.)

Examples of limiting the search area

You can specify that the element search area is located to the right of the intersection area formed by the Element1 and Element2 fuzzy rectangles:
You can specify that the boundaries of the search area of the current element are defined by the boundaries of the rectangles of the ElementName1, ElementName2, and ElementName3 elements. If any of the elements are not detected, calling this function defines the search area of the current element by the boundaries of the search areas of the corresponding elements:
You can specify that the search area of the current element is limited to the region of the ElementName element:
You can specify that the element must be searched for in the search area on even pages:
You can specify that the element must be searched for on pages 2, 4, and 7-9:
You can specify that the element must be searched for on the last page:

Auxiliary functions that define the search area

To specify that the element is located in the bottom half of a page (the exact page is not known in advance), write:
In all other cases, use the construction Page( N ).Rect to get the rectangle of page number N, or DocumentRect to get the rectangle of the entire document. You can also use the PageNumber function to specify a search area that depends on the page. Suppose you have a repeating element SearchElements.PageHeader. To search on each page beneath the instances of this element, write: