PdfSettings
Merged view of PdfSettings, combining immutable defaults, SDK overrides, and document overrides. Property writes automatically target the appropriate level (document if available, otherwise SDK).
from nutrient import PdfSettingsMethods
set_bitonal_image_compression
def set_bitonal_image_compression(self, value: PdfCompression) -> NoneSets the BitonalImageCompression property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | PdfCompression | The value to set for the BitonalImageCompression property. |
set_color_image_compression
def set_color_image_compression(self, value: PdfCompression) -> NoneSets the ColorImageCompression property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | PdfCompression | The value to set for the ColorImageCompression property. |
set_conformance
def set_conformance(self, value: PdfConformance) -> NoneSets the Conformance property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | PdfConformance | The value to set for the Conformance property. |
set_enable_color_detection
def set_enable_color_detection(self, value: bool) -> NoneSets the EnableColorDetection property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the EnableColorDetection property. |
set_enable_linearization
def set_enable_linearization(self, value: bool) -> NoneSets the EnableLinearization property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the EnableLinearization property. |
set_force_image_dpi
def set_force_image_dpi(self, value: int) -> NoneSets the ForceImageDpi property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | int | The value to set for the ForceImageDpi property. |
set_mode
def set_mode(self, value: PdfSettingsMode) -> NoneSets the Mode property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | PdfSettingsMode | The value to set for the Mode property. |
set_optimize
def set_optimize(self, value: bool) -> NoneSets the Optimize property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the Optimize property. |
set_save_preferences
def set_save_preferences(self, value: PdfSavePreferences) -> NoneSets the SavePreferences property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | PdfSavePreferences | The value to set for the SavePreferences property. |
set_use_deflate_on_jpeg
def set_use_deflate_on_jpeg(self, value: bool) -> NoneSets the UseDeflateOnJpeg property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the UseDeflateOnJpeg property. |
set_zlib_level
def set_zlib_level(self, value: int) -> NoneSets the ZlibLevel property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | int | The value to set for the ZlibLevel property. |
Properties
bitonal_image_compression
@propertydef bitonal_image_compression(self) -> PdfCompressionGets the BitonalImageCompression property.
Type: PdfCompression
Read-only property.
color_image_compression
@propertydef color_image_compression(self) -> PdfCompressionGets the ColorImageCompression property.
Type: PdfCompression
Read-only property.
conformance
@propertydef conformance(self) -> PdfConformanceGets the Conformance property.
Type: PdfConformance
Read-only property.
enable_color_detection
@propertydef enable_color_detection(self) -> boolGets the EnableColorDetection property.
Type: bool
Read-only property.
enable_linearization
@propertydef enable_linearization(self) -> boolGets the EnableLinearization property.
Type: bool
Read-only property.
force_image_dpi
@propertydef force_image_dpi(self) -> intGets the ForceImageDpi property.
Type: int
Read-only property.
mode
@propertydef mode(self) -> PdfSettingsModeGets the Mode property.
Type: PdfSettingsMode
Read-only property.
optimize
@propertydef optimize(self) -> boolGets the Optimize property.
Type: bool
Read-only property.
save_preferences
@propertydef save_preferences(self) -> PdfSavePreferencesGets the SavePreferences property.
Type: PdfSavePreferences
Read-only property.
use_deflate_on_jpeg
@propertydef use_deflate_on_jpeg(self) -> boolGets the UseDeflateOnJpeg property.
Type: bool
Read-only property.
zlib_level
@propertydef zlib_level(self) -> intGets the ZlibLevel property.
Type: int
Read-only property.