API Reference

Class

PdfSanitizationResult

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Sanitized PDF bytes plus before/after proof and optional quarantined attachments.

Inheritance

  • Object
  • PdfSanitizationResult

Usage

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

Returned or exposed by

Methods

public Byte[] ToBytes() #
Returns: Byte[]

Returns a defensive copy of the sanitized PDF bytes.

public PdfDocument ToDocument() #
Returns: PdfDocument

Opens the sanitized artifact as a fluent PDF document.

Properties

public PdfMutationPlan MutationPlan { get; } #

Shared mutation plan used for the full rewrite.

public PdfRewritePreservationReport PreservationReport { get; } #

Proof that document structures outside the sanitization policy were preserved.

public IReadOnlyList<PdfSanitizationFinding> RemovedFindings { get; } #

Unsafe items present before the rewrite and removed by policy.

public IReadOnlyList<PdfSanitizationFinding> RemainingFindings { get; } #

Forbidden items found after save. A successful operation always returns an empty list.

public PdfSanitizationReport RemovedReport { get; } #

Typed inventory selected before the rewrite.

public PdfSanitizationReport RemainingReport { get; } #

Typed selected inventory found after the rewrite.

public PdfSanitizationCategoryCounts RemovedCategoryCounts { get; } #

Logical per-category counts removed by the policy.

public PdfSanitizationCategoryCounts RemainingCategoryCounts { get; } #

Logical per-category counts still selected after the rewrite.

public PdfSanitizationActionCounts RemovedActionCounts { get; } #

Per-kind counts of actions removed by the policy.

public PdfSanitizationActionCounts RemainingActionCounts { get; } #

Per-kind counts of selected actions found after the rewrite.

public IReadOnlyList<PdfExtractedAttachment> QuarantinedAttachments { get; } #

Decoded attachments retained in memory when quarantine mode was requested.

public Boolean IsSanitized { get; } #

True when post-save inventory proves that no forbidden item remains.