PdfRedactionOptions Class

The options of PdfPage.Redact.

public sealed class PdfRedactionOptions

Constructors

NameDescription
PdfRedactionOptions()

PdfRedactionOptions()

PdfRedactionOptions.cs
public PdfRedactionOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options: the areas are painted black, and the annotations they touch are removed.
FillColorGets the color painted over each area once its content is removed, or null to paint nothing: the areas then show what is left under them, such as the page background. The default is black.
RemoveAnnotationsGets a value indicating whether the annotations whose rectangle touches an area are removed, with the values of the form fields of the widgets removed. The default is true.

Gets the default options: the areas are painted black, and the annotations they touch are removed.

public static PdfRedactionOptions Default { get; }

Property value

PdfRedactionOptions

Gets the color painted over each area once its content is removed, or null to paint nothing: the areas then show what is left under them, such as the page background. The default is black.

public PdfColor? FillColor { get; init; }

Property value

PdfColor?

RemoveAnnotations

PdfRedactionOptions.cs

Gets a value indicating whether the annotations whose rectangle touches an area are removed, with the values of the form fields of the widgets removed. The default is true.

public bool RemoveAnnotations { get; init; }

Property value

bool