Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfDocumentRedactions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

Permanent redaction operations for one PDF document.

Inheritance

  • object
  • PdfDocumentRedactions

Usage

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

Returned or exposed by 1

Methods

public PdfDocument AddAnnotation(PdfRedactionAnnotationOptions options, CancellationToken cancellationToken = default) #

Adds standard PDF /Redact review annotations for every canonical area in a region.

Parameters

options OfficeIMO.Pdf.PdfRedactionAnnotationOptions required
cancellationToken System.Threading.CancellationToken = default optional
Apply 2 overloads
public PdfDocument Apply(IEnumerable<PdfRedactionArea> areas, PdfRedactionApplyOptions? applyOptions = null, PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Creates a new PDF with intersecting content and annotations removed from the supplied areas.

Parameters

areas System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionArea> required
applyOptions OfficeIMO.Pdf.PdfRedactionApplyOptions? = null optional
layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfDocument Apply(PdfRedactionPlan plan, PdfRedactionApplyOptions? applyOptions = null, PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Applies a reviewed redaction plan, including exact field removal.

Parameters

plan OfficeIMO.Pdf.PdfRedactionPlan required
applyOptions OfficeIMO.Pdf.PdfRedactionApplyOptions? = null optional
layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionSharingResult ApplyForSharing(PdfRedactionPlan plan, OfficeHiddenDataOptions hiddenDataOptions, PdfRedactionApplyOptions? applyOptions = null, PdfRedactionVerificationOptions? verificationOptions = null, CancellationToken cancellationToken = default) #

Applies a reviewed redaction, removes the selected hidden data from the rewritten artifact, and rechecks the final artifact before returning it. No source file is modified.

Parameters

plan OfficeIMO.Pdf.PdfRedactionPlan required
hiddenDataOptions OfficeIMO.OfficeHiddenDataOptions required
applyOptions OfficeIMO.Pdf.PdfRedactionApplyOptions? = null optional
verificationOptions OfficeIMO.Pdf.PdfRedactionVerificationOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionApplyResult ApplyWithEvidence(PdfRedactionPlan plan, PdfRedactionApplyOptions? applyOptions = null, PdfRedactionVerificationOptions? verificationOptions = null, PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Applies a source-bound reviewed plan and returns the rewritten PDF, selected mutation path, and actual-versus-planned evidence from the rewritten artifact.

Parameters

plan OfficeIMO.Pdf.PdfRedactionPlan required
applyOptions OfficeIMO.Pdf.PdfRedactionApplyOptions? = null optional
verificationOptions OfficeIMO.Pdf.PdfRedactionVerificationOptions? = null optional
layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionVerificationReport AssertAppliedPlan(PdfRedactionPlan reviewedPlan, PdfRedactionVerificationOptions options, CancellationToken cancellationToken = default) #

Verifies a reviewed plan and throws when planned content remains in its areas.

Parameters

reviewedPlan OfficeIMO.Pdf.PdfRedactionPlan required
options OfficeIMO.Pdf.PdfRedactionVerificationOptions required
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionVerificationReport AssertVerified(PdfRedactionVerificationOptions options, CancellationToken cancellationToken = default) #

Verifies configured markers and throws when redaction proof fails.

Parameters

options OfficeIMO.Pdf.PdfRedactionVerificationOptions required
cancellationToken System.Threading.CancellationToken = default optional
Plan 2 overloads
public PdfRedactionPlan Plan(IEnumerable<PdfRedactionRegion> regions, PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Plans rich review regions with cooperative cancellation.

Parameters

regions System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionRegion> required
layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionPlan Plan(IEnumerable<PdfRedactionArea> areas, PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Plans rectangle-based redaction impact with cooperative cancellation.

Parameters

areas System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfRedactionArea> required
layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionPlan PlanAnnotations(PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null) #

Builds a source-bound plan from standard PDF /Redact annotations already present in the document.

Parameters

layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
public PdfRedactionPlan Search(PdfRedactionSearchOptions search, PdfTextLayoutOptions? layoutOptions = null, PdfLoadOptions? options = null, CancellationToken cancellationToken = default) #

Searches literal text, regex, logical kinds, and form-field names into a reviewable plan.

Parameters

search OfficeIMO.Pdf.PdfRedactionSearchOptions required
layoutOptions OfficeIMO.Pdf.PdfTextLayoutOptions? = null optional
options OfficeIMO.Pdf.PdfLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionVerificationReport Verify(PdfRedactionVerificationOptions options, CancellationToken cancellationToken = default) #

Verifies configured removed and retained markers in the rewritten PDF.

Parameters

options OfficeIMO.Pdf.PdfRedactionVerificationOptions required
cancellationToken System.Threading.CancellationToken = default optional
public PdfRedactionVerificationReport VerifyAppliedPlan(PdfRedactionPlan reviewedPlan, PdfRedactionVerificationOptions options, CancellationToken cancellationToken = default) #

Verifies configured markers and reports any content still intersecting the reviewed plan areas.

Parameters

reviewedPlan OfficeIMO.Pdf.PdfRedactionPlan required
options OfficeIMO.Pdf.PdfRedactionVerificationOptions required
cancellationToken System.Threading.CancellationToken = default optional