Settings for Pdf. 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.
using Nutrient;The SDK creates this class through factory methods or other SDK objects.
Properties
BitonalImageCompression
public PdfCompression BitonalImageCompression { get; set; }Gets or sets the value of BitonalImageCompression. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: PdfCompression
ColorImageCompression
public PdfCompression ColorImageCompression { get; set; }Gets or sets the value of ColorImageCompression. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: PdfCompression
Conformance
public PdfConformance Conformance { get; set; }Gets or sets the value of Conformance. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: PdfConformance
EnableColorDetection
public bool EnableColorDetection { get; set; }Gets or sets the value of EnableColorDetection. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: bool
EnableLinearization
public bool EnableLinearization { get; set; }Gets or sets the value of EnableLinearization. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: bool
ForceImageDpi
public int ForceImageDpi { get; set; }Gets or sets the value of ForceImageDpi. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
Mode
public PdfSettingsMode Mode { get; set; }Gets or sets the value of Mode. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: PdfSettingsMode
Optimize
public bool Optimize { get; set; }Gets or sets the value of Optimize. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: bool
SavePreferences
public PdfSavePreferences SavePreferences { get; set; }Gets or sets the value of SavePreferences. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: PdfSavePreferences
UseDeflateOnJpeg
public bool UseDeflateOnJpeg { get; set; }Gets or sets the value of UseDeflateOnJpeg. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: bool
ZlibLevel
public int ZlibLevel { get; set; }Gets or sets the value of ZlibLevel. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
Resource management
public void Dispose()PdfSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.