Settings for Jbig2. 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, Advanced
from nutrient_sdk import Jbig2SettingsConstruction
Jbig2Settings 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.jbig2_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.jbig2_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.jbig2_settings = other_settings is rejected.
Properties
jbig2_pms_threshold
@propertydef jbig2_pms_threshold(self) -> float
@jbig2_pms_threshold.setterdef jbig2_pms_threshold(self, value: float) -> NoneThe threshold for Pattern Matching and Substitution (PMS) in JBIG2 compression. Higher values result in more aggressive compression but may reduce quality.
Type: float
Default: 0.85F