setText

public final void setText(String value)

Document text for the text branch. When non-empty, this text is scored directly. When empty (default), the text is derived from the document with AdaptiveOcr (fast OCR), or with when it is set (e.g. Icr for local layout models, VlmEnhancedIcr for VLM-enhanced) — multi-page documents are extracted in full. Set to 0 to skip the text branch (and its extraction) entirely.

Parameters

value

The value to set for the Text property.