# PdfAnnotationRemovalOptions

Filters for removing PDF annotations during a safe full rewrite.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfAnnotationRemovalOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L25)

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Filters for removing PDF annotations during a safe full rewrite.

## Inheritance

- object
- PdfAnnotationRemovalOptions

## 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.

### Accepted by parameters 1

- Method [PdfDocumentAnnotations.Remove](/api/pdf/officeimo-pdf-pdfdocumentannotations/#method-remove-officeimo-pdf-pdfannotationremovaloptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[PdfAnnotationRemovalOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L25)

## 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 PdfMutationExecutionPreference ExecutionPreference { get; set; }` [#](#property-executionpreference)

[PdfAnnotationRemovalOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L13)

Preferred mutation mode. Automatic uses a full rewrite when safe and append-only when required.

`public int? ObjectNumber { get; set; }` [#](#property-objectnumber)

[PdfAnnotationRemovalOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L16)

Specific annotation object number to remove. When omitted, other filters decide the match.

`public int? PageNumber { get; set; }` [#](#property-pagenumber)

[PdfAnnotationRemovalOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L19)

One-based page number whose annotations should be considered. When omitted, all pages are considered.

`public string? Subtype { get; set; }` [#](#property-subtype)

[PdfAnnotationRemovalOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L22)

Annotation subtype, for example Text, Link, or Widget. When omitted, all subtypes are considered.

`public bool RemoveMatchingPopups { get; set; }` [#](#property-removematchingpopups)

[PdfAnnotationRemovalOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L25)

Remove popup annotations linked from matching annotations through /Popup.

`public bool AllowResidualDataInAppendOnly { get; set; }` [#](#property-allowresidualdatainappendonly)

[PdfAnnotationRemovalOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAnnotationRemovalOptions.cs#L31)

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.

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