---
title: "TableDetectionSettings"
canonical_url: "https://www.nutrient.io/api/python/settings/document/advanced/table-detection-settings/"
md_url: "https://www.nutrient.io/api/python/settings/document/advanced/table-detection-settings.md"
last_updated: "2026-10-26T16:51:00.819Z"
description: "Settings for TableDetection. Values fall back through three levels: document → SDK → built-in default."
---

Settings for TableDetection. 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:** `Document`, `Advanced`

```python

from nutrient_sdk import TableDetectionSettings

```

## Construction

`TableDetectionSettings` is accessed through a [`Document`](/api/python/document/) instance for per-document overrides, or via [`SdkSettings`](/api/python/settings/document/sdk-settings/) for SDK-wide defaults.

```python

# Per-document override

with Document.open("input.pdf") as doc:
    settings = doc.settings.table_detection_settings
    settings.some_field = new_value          # mutate fields directly

# SDK-wide default (applies to all documents)

SdkSettings.table_detection_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_detection_settings = other_settings` is rejected.

## Properties

### enable_raster_table_detection

```python

@property
def enable_raster_table_detection(self) -> bool

@enable_raster_table_detection.setter
def enable_raster_table_detection(self, value: bool) -> None

```

Indicates whether raster-based table detection is enabled during layout analysis.

**Type:** `bool`

**Default:** `true`

---

---

## Related pages

- [Advanced](/api/python/settings/document/advanced.md)

