This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/csharp/settings/vision/advanced/preprocessing-settings.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. PreprocessingSettings

Settings for Preprocessing. 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

RestorationMode

public RestorationMode RestorationMode { get; set; }

Controls optional page-image restoration before vision inference. Keep this disabled unless the pipeline is processing a photographed document page that needs restoration. In particular, use Local only for badly taken document photos, not for regular scans, screenshots, born-digital PDFs, or already flat images.

Type: RestorationMode

Resource management

public void Dispose()

PreprocessingSettings 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.