Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRasterContentSafetyOptions

Namespace OfficeIMO.Workflows
Assembly OfficeIMO.Workflows
Modifiers sealed

Bounds OCR-backed concealment inspection and optional raster-region redaction.

Inheritance

  • Object
  • OfficeRasterContentSafetyOptions

Usage

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

Accepted by parameters

Constructors

Properties

public OfficeContentSafetyOptions Inspection { get; set; } #

Shared content-safety thresholds and finding limits.

public Int64 MaximumDecodedPixels { get; set; } #

Maximum decoded pixels retained for one static image. Defaults to 16 million.

public Int32 MaximumOcrSpans { get; set; } #

Maximum OCR spans accepted from the provider. Defaults to 4,096.

public Int64 MaximumPixelAnalysisWork { get; set; } #

Maximum cumulative region-pixel work accepted during inspection or selected-region redaction. Defaults to 64 million.

public Int64 MaximumRegionComparisons { get; set; } #

Maximum cumulative OCR-region intersection comparisons during selected-region redaction. Defaults to one million.

public Int32 MaximumTinyTextHeightPixels { get; set; } #

Pixel height at or below which a recognized span is treated as tiny. Defaults to three pixels.

public Byte MaximumConcealedAlpha { get; set; } #

Maximum alpha channel value that proves an entire OCR region is nearly transparent. Defaults to 16 out of 255.

public TimeSpan OcrTimeout { get; set; } #

Total timeout for one OCR provider call. Defaults to 30 seconds.

public Boolean EnableOpaqueRectangleRedaction { get; set; } #

Enables explicit opaque-rectangle redaction for findings with bounded geometry and sufficient confidence. Disabled by default; disabled findings remain report-only.

public Double MinimumOcrConfidenceForRedaction { get; set; } #

Minimum provider confidence required before a region can be redacted. Defaults to 0.8.

public Int32 RedactionPaddingPixels { get; set; } #

Pixels added around each selected OCR region during redaction. Defaults to one.

public OfficeColor RedactionColor { get; set; } #

Opaque color written over selected OCR regions. Defaults to black.

public Int64 MaximumOutputBytes { get; set; } #

Maximum normalized PNG bytes produced for OCR or redaction output. Defaults to 128 MiB.