detect Forms
Detects form fields on the document and exports the result. Output format is determined by (JSON or IR Lite). Each detected field carries its type and bounding box. To also assign AI semantic labels (e.g. "First name"), set FormLabelingSettings.EnableAiLabeling on the document's settings before calling — no separate method is needed.
Return
The exported content as a string (JSON or IR Lite JSON depending on settings).