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

Settings for DocumentLayoutJsonExport. 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 DocumentLayoutJsonExportSettings

Construction

DocumentLayoutJsonExportSettings 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.document_layout_json_export_settings
settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)
SdkSettings.document_layout_json_export_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.document_layout_json_export_settings = other_settings is rejected.

Properties

content

@property
def content(self) -> JsonExportContent
@content.setter
def content(self, value: JsonExportContent) -> None

The content elements to include in JSON output.

Type: JsonExportContent

Default: JsonExportContent.IncludeWords


format

@property
def format(self) -> JsonExportFormat
@format.setter
def format(self, value: JsonExportFormat) -> None

The formatting options for JSON output.

Type: JsonExportFormat

Default: JsonExportFormat.Unspecified