Settings for Word. 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 WordSettingsConstruction
WordSettings 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.word_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.word_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.word_settings = other_settings is rejected.
Properties
bookmark_source
@propertydef bookmark_source(self) -> DocumentBookmarkSource
@bookmark_source.setterdef bookmark_source(self, value: DocumentBookmarkSource) -> NoneThe boorkmark source for Word documents.
Type: DocumentBookmarkSource
Default: DocumentBookmarkSource.Headings
half_transparent_header_footer
@propertydef half_transparent_header_footer(self) -> bool
@half_transparent_header_footer.setterdef half_transparent_header_footer(self, value: bool) -> NoneFlag indicating if header/footer content should be rendered with half-transparency.
Type: bool
Default: false
markup_mode
@propertydef markup_mode(self) -> DocumentMarkupMode
@markup_mode.setterdef markup_mode(self, value: DocumentMarkupMode) -> NoneThe markup mode for Word documents.
Type: DocumentMarkupMode
Default: DocumentMarkupMode.AllMarkup