# OfficeRasterContentSafety

OCR-backed concealed-text inspection and explicit rectangular redaction for bounded raster images.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

static

OCR-backed concealed-text inspection and explicit rectangular redaction for bounded raster images.

## Inheritance

- object
- OfficeRasterContentSafety

Filter members 

Show inherited

## Methods

InspectAsync 2 overloads

`public static async Task<OfficeContentSafetyReport> InspectAsync(byte[] imageBytes, IOcrEngine engine, OfficeRasterContentSafetyOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-inspectasync-byte-officeimo-ocr-iocrengine-officeimo-workflows-officerastercontentsafetyoptions-threading-cancellationtoken)

Inspects a single-frame raster image using caller-owned OCR and pixel evidence. Metadata and provider text without bounded geometry never become concealment findings.

Parameters

**imageBytes byte[] required**

**engine OfficeIMO.Ocr.IOcrEngine required**

**options OfficeIMO.Workflows.OfficeRasterContentSafetyOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeContentSafetyReport>`

`public static async Task<OfficeContentSafetyReport> InspectAsync(string filePath, IOcrEngine engine, OfficeRasterContentSafetyOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-inspectasync-string-officeimo-ocr-iocrengine-officeimo-workflows-officerastercontentsafetyoptions-threading-cancellationtoken)

Reads and inspects one bounded raster file.

Parameters

**filePath string required**

**engine OfficeIMO.Ocr.IOcrEngine required**

**options OfficeIMO.Workflows.OfficeRasterContentSafetyOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeContentSafetyReport>`

`public static async Task<OfficeContentCleanupResult> RedactSelectedContentAsync(byte[] imageBytes, IOcrEngine engine, OfficeContentCleanupSelection selection, OfficeRasterContentSafetyOptions options, CancellationToken cancellationToken = default)` [#](#method-redactselectedcontentasync-byte-officeimo-ocr-iocrengine-officeimo-contentsafety-officecontentcleanupselection-officeimo-workflows-officerastercontentsafetyoptions-threading-cancellationtoken)

Reinspects an exact raster snapshot, covers only selected cleanup-capable OCR regions with the configured opaque color, emits a single-frame PNG derivative, reopens it, and reruns OCR-backed inspection.

Parameters

**imageBytes byte[] required**

**engine OfficeIMO.Ocr.IOcrEngine required**

**selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required**

**options OfficeIMO.Workflows.OfficeRasterContentSafetyOptions required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeContentCleanupResult>`

## 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?`

<!-- PowerForge markdown artifact sha256:2B4E8A11F839064C003E0C96BBB9EC17F91728420A344D241020BFECD9143998 -->
