# OfficeScanCleanupOptions

Creates a separate raster-only PDF from selected, prepared scan pages. An encrypted source keeps its passwords, permissions and encryption settings.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeScanCleanupOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L8)

**Modifiers**

sealed

Creates a separate raster-only PDF from selected, prepared scan pages. An encrypted source keeps its passwords, permissions and encryption settings.

## Inheritance

- object
- OfficeScanCleanupOptions

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OfficeWorkflowRequest.ScanCleanup](/api/workflows/officeimo-workflows-officeworkflowrequest/#property-scancleanup)

Filter members 

Show inherited

## Constructors

`public OfficeScanCleanupOptions()` [#](#constructor-ctor)

[OfficeScanCleanupOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L8)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfOcrMergeOptions Preparation { get; set; }` [#](#property-preparation)

[OfficeScanCleanupOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L8)

Page selection, sampling density, region cropping, perspective, and tonal settings.

`public OfficePageSelector? PageSelector { get; set; }` [#](#property-pageselector)

[OfficeScanCleanupOptions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L10)

Optional document-relative pages, resolved against the captured source. Cannot be combined with Preparation.ReadOptions.PageSelection.

`public bool AcknowledgeRasterOutput { get; set; }` [#](#property-acknowledgerasteroutput)

[OfficeScanCleanupOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L12)

Must be true to acknowledge that only rendered appearances are copied; native text, forms, links, signatures, and attachments are omitted.

`public string? ExpectedSourceSha256 { get; set; }` [#](#property-expectedsourcesha256)

[OfficeScanCleanupOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L14)

Optional SHA-256 hex digest from a reviewed source snapshot; a mismatch blocks output.

`public int MaximumDiagnostics { get; set; }` [#](#property-maximumdiagnostics)

[OfficeScanCleanupOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L16)

Maximum diagnostic messages retained across all prepared pages. Increase for trusted, warning-heavy scans.

`public long MaximumDiagnosticCharacters { get; set; }` [#](#property-maximumdiagnosticcharacters)

[OfficeScanCleanupOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeScanCleanupOptions.cs#L18)

Maximum total diagnostic text characters retained across all prepared pages.

<!-- PowerForge markdown artifact sha256:35391B95225936ECB13F075EEC4F671F32ED70C31CB47A76754FBC5C2BDB4750 -->
