# PdfAnnotationRemovalOptionsFluent

The fluent methods of PdfAnnotationRemovalOptions, generated from its public properties: A property-named method sets a property and a singular-named method…

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfAnnotationRemovalOptions](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PdfAnnotationRemovalOptionsFluent

Filter members 

Show inherited

## Methods

`public static PdfAnnotationRemovalOptions AllowResidualDataInAppendOnly(PdfAnnotationRemovalOptions pdfAnnotationRemovalOptions, bool value = true)` [#](#method-allowresidualdatainappendonly-officeimo-pdf-pdfannotationremovaloptions-boolean)

Sets [PdfAnnotationRemovalOptions.AllowResidualDataInAppendOnly](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/): Allows append-only removal even though prior revisions retain the removed annotation bytes. Disabled by default because append-only output is not a sanitization boundary.

Parameters

**pdfAnnotationRemovalOptions OfficeIMO.Pdf.PdfAnnotationRemovalOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfAnnotationRemovalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::OfficeIMO.Pdf.PdfAnnotationRemovalOptions { AllowResidualDataInAppendOnly = value };    pdfAnnotationRemovalOptions.AllowResidualDataInAppendOnly(value);
```

`public static PdfAnnotationRemovalOptions ExecutionPreference(PdfAnnotationRemovalOptions pdfAnnotationRemovalOptions, PdfMutationExecutionPreference value)` [#](#method-executionpreference-officeimo-pdf-pdfannotationremovaloptions-officeimo-pdf-pdfmutationexecutionpreference)

Sets [PdfAnnotationRemovalOptions.ExecutionPreference](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/): Preferred mutation mode. Automatic uses a full rewrite when safe and append-only when required.

Parameters

**pdfAnnotationRemovalOptions OfficeIMO.Pdf.PdfAnnotationRemovalOptions required**

The instance.

**value OfficeIMO.Pdf.PdfMutationExecutionPreference required**

The value.

Returns

`PdfAnnotationRemovalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Pdf.PdfAnnotationRemovalOptions { ExecutionPreference = value };    pdfAnnotationRemovalOptions.ExecutionPreference(value);
```

`public static PdfAnnotationRemovalOptions ObjectNumber(PdfAnnotationRemovalOptions pdfAnnotationRemovalOptions, int? value)` [#](#method-objectnumber-officeimo-pdf-pdfannotationremovaloptions-nullable-system-int32)

Sets [PdfAnnotationRemovalOptions.ObjectNumber](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/): Specific annotation object number to remove. When omitted, other filters decide the match.

Parameters

**pdfAnnotationRemovalOptions OfficeIMO.Pdf.PdfAnnotationRemovalOptions required**

The instance.

**value int? required**

The value.

Returns

`PdfAnnotationRemovalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Pdf.PdfAnnotationRemovalOptions { ObjectNumber = value };    pdfAnnotationRemovalOptions.ObjectNumber(value);
```

`public static PdfAnnotationRemovalOptions PageNumber(PdfAnnotationRemovalOptions pdfAnnotationRemovalOptions, int? value)` [#](#method-pagenumber-officeimo-pdf-pdfannotationremovaloptions-nullable-system-int32)

Sets [PdfAnnotationRemovalOptions.PageNumber](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/): One-based page number whose annotations should be considered. When omitted, all pages are considered.

Parameters

**pdfAnnotationRemovalOptions OfficeIMO.Pdf.PdfAnnotationRemovalOptions required**

The instance.

**value int? required**

The value.

Returns

`PdfAnnotationRemovalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Pdf.PdfAnnotationRemovalOptions { PageNumber = value };    pdfAnnotationRemovalOptions.PageNumber(value);
```

`public static PdfAnnotationRemovalOptions RemoveMatchingPopups(PdfAnnotationRemovalOptions pdfAnnotationRemovalOptions, bool value = true)` [#](#method-removematchingpopups-officeimo-pdf-pdfannotationremovaloptions-boolean)

Sets [PdfAnnotationRemovalOptions.RemoveMatchingPopups](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/): Remove popup annotations linked from matching annotations through /Popup.

Parameters

**pdfAnnotationRemovalOptions OfficeIMO.Pdf.PdfAnnotationRemovalOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfAnnotationRemovalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Pdf.PdfAnnotationRemovalOptions { RemoveMatchingPopups = value };    pdfAnnotationRemovalOptions.RemoveMatchingPopups(value);
```

`public static PdfAnnotationRemovalOptions Subtype(PdfAnnotationRemovalOptions pdfAnnotationRemovalOptions, string? value)` [#](#method-subtype-officeimo-pdf-pdfannotationremovaloptions-string)

Sets [PdfAnnotationRemovalOptions.Subtype](/api/pdf/officeimo-pdf-pdfannotationremovaloptions/): Annotation subtype, for example Text, Link, or Widget. When omitted, all subtypes are considered.

Parameters

**pdfAnnotationRemovalOptions OfficeIMO.Pdf.PdfAnnotationRemovalOptions required**

The instance.

**value string? required**

The value.

Returns

`PdfAnnotationRemovalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfAnnotationRemovalOptions { Subtype = value };    pdfAnnotationRemovalOptions.Subtype(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:BCD6E774CA4E48657894B2910CCD8EB19ECFE244557D6F9F973D2DA4A3EA3D2D -->
