Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeRasterContentSafetyOptions

OfficeIMO.Workflows

Namespace
OfficeIMO.Workflows
Assembly
OfficeIMO.Workflows
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • OfficeRasterContentSafetyOptions

Usage

Explore 2 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.

Accepted by parameters 2

Constructors

public OfficeRasterContentSafetyOptions() #

Properties

public OfficeContentSafetyOptions Inspection { get; set; } #

Shared content-safety thresholds and finding limits.

public long MaximumDecodedPixels { get; set; } #

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

public int MaximumOcrSpans { get; set; } #

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

public long MaximumPixelAnalysisWork { get; set; } #

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

public long MaximumRegionComparisons { get; set; } #

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

public int 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 bool 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 int 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 long MaximumOutputBytes { get; set; } #

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