Settings for Open. 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
from nutrient_sdk import OpenSettingsConstruction
OpenSettings 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.open_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.open_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.open_settings = other_settings is rejected.
Properties
document_format
@propertydef document_format(self) -> DocumentFormat
@document_format.setterdef document_format(self, value: DocumentFormat) -> NoneThe expected document format.
Type: DocumentFormat
Default: GdPicture14.DocumentFormat.DocumentFormatUNKNOWN
implicit_conversion
@propertydef implicit_conversion(self) -> ImplicitConversion
@implicit_conversion.setterdef implicit_conversion(self, value: ImplicitConversion) -> NoneWhether implicit conversion is enabled when opening documents in editors. When enabled, documents will be automatically converted to a compatible format for editing.
Type: ImplicitConversion
Default: ImplicitConversion.Enabled
max_pages
@propertydef max_pages(self) -> int
@max_pages.setterdef max_pages(self, value: int) -> NoneThe maximum number of pages to load from the document.
Type: int
Default: 0
mode
@propertydef mode(self) -> OpenSettingsMode
@mode.setterdef mode(self, value: OpenSettingsMode) -> NoneThe operational mode for opening the document.
Type: OpenSettingsMode
Default: OpenSettingsMode.Unspecified
page_cache_mode
@propertydef page_cache_mode(self) -> PageCacheMode
@page_cache_mode.setterdef page_cache_mode(self, value: PageCacheMode) -> NoneThe page caching mode for the document.
Type: PageCacheMode
Default: PageCacheMode.Memory