# PdfRedactionVerificationOptions

Configures post-redaction checks for removed and retained PDF text markers.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfRedactionVerificationOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L7)

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Configures post-redaction checks for removed and retained PDF text markers.

## Inheritance

- object
- PdfRedactionVerificationOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Redact literal text from a PDF](/pdf/redact/) Guide
  
  Find literal text matches, remove the matched PDF content, and verify extracted text, encoded strings, and decoded streams before download.

## Usage

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

- Method [PdfRedactionVerificationOptions.RequireRemovedText](/api/pdf/officeimo-pdf-pdfredactionverificationoptions/#method-requireremovedtext-string)
- Method [PdfRedactionVerificationOptions.RequireRetainedText](/api/pdf/officeimo-pdf-pdfredactionverificationoptions/#method-requireretainedtext-string)

### Accepted by parameters 6

- Method [PdfDocumentRedactions.ApplyForSharing](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-applyforsharing-officeimo-pdf-pdfredactionplan-officeimo-officehiddendataoptions-officeimo-pdf-pdfredactionapplyoptions-officeimo-pdf-pdfredactionverificationoptions-threading-cancellationtoken) parameter `verificationOptions`
- Method [PdfDocumentRedactions.ApplyWithEvidence](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-applywithevidence-officeimo-pdf-pdfredactionplan-officeimo-pdf-pdfredactionapplyoptions-officeimo-pdf-pdfredactionverificationoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `verificationOptions`
- Method [PdfDocumentRedactions.AssertAppliedPlan](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-assertappliedplan-officeimo-pdf-pdfredactionplan-officeimo-pdf-pdfredactionverificationoptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentRedactions.AssertVerified](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-assertverified-officeimo-pdf-pdfredactionverificationoptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentRedactions.Verify](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-verify-officeimo-pdf-pdfredactionverificationoptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentRedactions.VerifyAppliedPlan](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-verifyappliedplan-officeimo-pdf-pdfredactionplan-officeimo-pdf-pdfredactionverificationoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public PdfRedactionVerificationOptions()` [#](#constructor-ctor)

[PdfRedactionVerificationOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L7)

## Methods

`public PdfRedactionVerificationOptions RequireRemovedText(params string[] markers)` [#](#method-requireremovedtext-string)

[PdfRedactionVerificationOptions.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L57)

Adds text markers that must be removed and returns this options object for fluent setup.

Parameters

**markers string[] required**

Returns

`PdfRedactionVerificationOptions`

`public PdfRedactionVerificationOptions RequireRetainedText(params string[] markers)` [#](#method-requireretainedtext-string)

[PdfRedactionVerificationOptions.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L63)

Adds text markers that must remain readable and returns this options object for fluent setup.

Parameters

**markers string[] required**

Returns

`PdfRedactionVerificationOptions`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IList<string> RemovedTextMarkers { get; }` [#](#property-removedtextmarkers)

[PdfRedactionVerificationOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L12)

Text markers that must not remain extractable after redaction.

`public IList<string> RetainedTextMarkers { get; }` [#](#property-retainedtextmarkers)

[PdfRedactionVerificationOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L15)

Text markers that must remain extractable after redaction.

`public bool CheckRawPdfBytes { get; set; }` [#](#property-checkrawpdfbytes)

[PdfRedactionVerificationOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L18)

True when removed markers should also be checked against raw rewritten PDF bytes decoded as Latin-1.

`public bool CheckEncodedPdfStrings { get; set; }` [#](#property-checkencodedpdfstrings)

[PdfRedactionVerificationOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L21)

True when removed markers should also be searched in common PDF string byte encodings and hex strings.

`public bool CheckDecodedPdfStreams { get; set; }` [#](#property-checkdecodedpdfstreams)

[PdfRedactionVerificationOptions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L24)

True when decoded PDF stream content should be searched for removed markers.

`public bool FailOnUndecodablePdfStreams { get; set; }` [#](#property-failonundecodablepdfstreams)

[PdfRedactionVerificationOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L27)

True when redaction verification should fail if a PDF stream cannot be decoded while decoded stream checks are enabled.

`public bool RequireCompleteStreamInspection { get; set; }` [#](#property-requirecompletestreaminspection)

[PdfRedactionVerificationOptions.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L34)

True when every semantic PDF stream must be inspectable even when decoded-stream marker checks or undecodable-stream failures were disabled. Opaque image-codec payloads are inspected through image placement and mutation evidence instead of generic stream decoding. Use this for plan-aware verification where image or annotation removal also requires fail-closed proof.

`public bool MatchCase { get; set; }` [#](#property-matchcase)

[PdfRedactionVerificationOptions.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L37)

True to compare removed and retained text markers with ordinal casing; false to use ordinal case-insensitive comparison.

`public bool CheckManagedRendering { get; set; }` [#](#property-checkmanagedrendering)

[PdfRedactionVerificationOptions.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L40)

Render every page through the managed renderer and fail when a page cannot produce output.

`public IList<IPdfRedactionExternalValidator> ExternalValidators { get; }` [#](#property-externalvalidators)

[PdfRedactionVerificationOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfRedactionVerificationOptions.cs#L53)

Optional independent validators. Implement [IPdfRedactionCancellationAwareExternalValidator](/api/pdf/officeimo-pdf-ipdfredactioncancellationawareexternalvalidator/) when the validator starts a process or another potentially long-running operation.

<!-- PowerForge markdown artifact sha256:4B793F124045A73A3BEED27E7A22AF1C6926485D2E8823B70FF0046E4E236E7A -->
