Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRasterContentSafety

Namespace OfficeIMO.Workflows
Assembly OfficeIMO.Workflows
Modifiers static

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

Inheritance

  • Object
  • OfficeRasterContentSafety

Methods

InspectAsync 2 overloads
public static async Task<OfficeContentSafetyReport> InspectAsync(Byte[] imageBytes, IOcrEngine engine, OfficeRasterContentSafetyOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<OfficeContentSafetyReport>

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

arg1 System.Byte[] requiredposition: 0
arg2 OfficeIMO.Ocr.IOcrEngine requiredposition: 1
arg3 OfficeIMO.Workflows.OfficeRasterContentSafetyOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static async Task<OfficeContentSafetyReport> InspectAsync(String filePath, IOcrEngine engine, OfficeRasterContentSafetyOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<OfficeContentSafetyReport>

Reads and inspects one bounded raster file.

Parameters

arg1 System.String requiredposition: 0
arg2 OfficeIMO.Ocr.IOcrEngine requiredposition: 1
arg3 OfficeIMO.Workflows.OfficeRasterContentSafetyOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static async Task<OfficeContentCleanupResult> RedactSelectedContentAsync(Byte[] imageBytes, IOcrEngine engine, OfficeContentCleanupSelection selection, OfficeRasterContentSafetyOptions options, CancellationToken cancellationToken = default) #
Returns: Task<OfficeContentCleanupResult>

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 System.Byte[] requiredposition: 0
engine OfficeIMO.Ocr.IOcrEngine requiredposition: 1
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection requiredposition: 2
options OfficeIMO.Workflows.OfficeRasterContentSafetyOptions requiredposition: 3
cancellationToken System.Threading.CancellationToken = default optionalposition: 4