Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Result Snap Options

Line Snap Options Grooper.Core

Defines settings for snapping a text extraction result to nearby lines and updating the extracted value.

Remarks

The ResultSnapOptions class extends Line Snap Options to provide additional control over how extracted data regions are aligned to document lines and how the extracted text value is updated.

Overview

  • Inherits all snapping behavior from Line Snap Options, allowing a region to be adjusted so its edges align with nearby lines on the document.
  • Adds the 'Update Text Value' property, which controls whether the extracted value is refreshed after the region is snapped.

How It Works

  1. The region associated with a Data Instance is adjusted using the snapping logic from Line Snap Options.
  2. If 'Update Text Value' is enabled, the OCR results and value for the instance are updated to reflect the text within the new, snapped region.
  3. This ensures that the extracted value always matches the visible region, even if the region was expanded or shifted to align with document lines.

Usage Guidance

  • Use this class when you want to ensure that both the region and the extracted value are consistent and precisely aligned to document structure.
  • Enable 'Update Text Value' to automatically refresh the value after snapping, which is especially useful for table cells, form fields, or other structured data.

Properties

NameTypeDescription

See Also

Used By

Notification