API Reference
Class
OfficeRasterContentSafety
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[]
- arg2 OfficeIMO.Ocr.IOcrEngine
- arg3 OfficeIMO.Workflows.OfficeRasterContentSafetyOptions = null
- arg4 System.Threading.CancellationToken = default
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
- arg2 OfficeIMO.Ocr.IOcrEngine
- arg3 OfficeIMO.Workflows.OfficeRasterContentSafetyOptions = null
- arg4 System.Threading.CancellationToken = default
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[]
- engine OfficeIMO.Ocr.IOcrEngine
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.Workflows.OfficeRasterContentSafetyOptions
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object