Settings for Html. 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: Format
from nutrient_sdk import HtmlSettingsConstruction
HtmlSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.
# Per-document overridewith Document.open("input.pdf") as doc: settings = doc.settings.html_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.html_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.html_settings = other_settings is rejected.
Properties
image_export
@propertydef image_export(self) -> ImageExportMode
@image_export.setterdef image_export(self, value: ImageExportMode) -> NoneControls how images are exported when converting documents to HTML.
Type: ImageExportMode
Default: ImageExportMode.Embedded
layout
@propertydef layout(self) -> HtmlLayoutType
@layout.setterdef layout(self, value: HtmlLayoutType) -> NoneThe layout type to use when saving HTML documents.
Type: HtmlLayoutType
Default: HtmlLayoutType.PageLayout