---
title: "Jbig2Settings"
canonical_url: "https://www.nutrient.io/api/python/settings/format/advanced/jbig2-settings/"
md_url: "https://www.nutrient.io/api/python/settings/format/advanced/jbig2-settings.md"
last_updated: "2026-06-12T15:43:20.748Z"
description: "Settings for Jbig2. Values fall back through three levels: document → SDK → built-in default."
---

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`

```python

from nutrient_sdk import Jbig2Settings

```

## Construction

`Jbig2Settings` is accessed through a [`Document`](/api/python/document/) instance for per-document overrides, or via [`SdkSettings`](/api/python/settings/document/sdk-settings/) for SDK-wide defaults.

```python

# Per-document override

with 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_value

```

Settings 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

```python

@property
def jbig2_pms_threshold(self) -> float

@jbig2_pms_threshold.setter
def jbig2_pms_threshold(self, value: float) -> None

```

The 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`

---

---

## Related pages

- [Advanced](/api/python/settings/format/advanced.md)
- [Per-document override](/api/python/settings/format/advanced/pdf-page-settings.md)
- [Per-document override](/api/python/settings/format/advanced/tiff-settings.md)

