This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/settings/vision/advanced/table-recognition-settings.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. TableRecognitionSettings

Settings for TableRecognition. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.

Tags: Vision, Advanced

from nutrient_sdk import TableRecognitionSettings

Construction

TableRecognitionSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.

# Per-document override
with Document.open("input.pdf") as doc:
settings = doc.settings.table_recognition_settings
settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)
SdkSettings.table_recognition_settings.some_field = new_value

Settings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.table_recognition_settings = other_settings is rejected.

Properties

target_size

@property
def target_size(self) -> int
@target_size.setter
def target_size(self, value: int) -> None

Target size for image preprocessing (height and width). Default is 448x448 as specified in the TableFormer model.

Type: int

Default: 448