# PdfStampAnnotationOptions

Placement, appearance, and mutation policy for a stamp annotation added to an existing PDF page.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Placement, appearance, and mutation policy for a stamp annotation added to an existing PDF page.

## Inheritance

- object
- PdfStampAnnotationOptions

## Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

## 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.AddStamp](/api/pdf/officeimo-pdf-pdfdocumentannotations/#method-addstamp-officeimo-pdf-pdfstampannotationoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

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

## 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 int PageNumber { get; set; }` [#](#property-pagenumber)

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

One-based target page number.

`public double X { get; set; }` [#](#property-x)

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

Left edge in page user-space units.

`public double Y { get; set; }` [#](#property-y)

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

Bottom edge in page user-space units.

`public double Width { get; set; }` [#](#property-width)

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

Annotation width in page user-space units.

`public double Height { get; set; }` [#](#property-height)

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

Annotation height in page user-space units.

`public string StampName { get; set; }` [#](#property-stampname)

[PdfStampAnnotationOptions.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L30)

Standard or custom PDF stamp name, for example Approved, Draft, or TopSecret.

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

[PdfStampAnnotationOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L33)

Optional human-readable annotation contents.

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

[PdfStampAnnotationOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L36)

Optional annotation author/title.

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

[PdfStampAnnotationOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L39)

Optional stable annotation name stored in /NM.

`public int Flags { get; set; }` [#](#property-flags)

[PdfStampAnnotationOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L42)

Annotation flags. The default value 4 enables printing.

`public OfficeColor StrokeColor { get; set; }` [#](#property-strokecolor)

[PdfStampAnnotationOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L45)

Border and label color. The default is dark red.

`public OfficeColor? FillColor { get; set; }` [#](#property-fillcolor)

[PdfStampAnnotationOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L48)

Optional appearance fill color.

`public double BorderWidth { get; set; }` [#](#property-borderwidth)

[PdfStampAnnotationOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L51)

Border width in page user-space units.

`public byte[]? ImageBytes { get; set; }` [#](#property-imagebytes)

[PdfStampAnnotationOptions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L55)

Optional PNG or JPEG appearance. When set, the stamp displays this image instead of its text label. This is a visual annotation, not a cryptographic signature.

`public long MaximumEncodedImageBytes { get; set; }` [#](#property-maximumencodedimagebytes)

[PdfStampAnnotationOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L60)

Maximum encoded image bytes accepted for an image-backed stamp. Defaults to 128 MiB.

`public PdfMutationExecutionPreference ExecutionPreference { get; set; }` [#](#property-executionpreference)

[PdfStampAnnotationOptions.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfStampAnnotationOptions.cs#L65)

Preferred mutation mode. Automatic uses append-only when signature policy requires it.

<!-- PowerForge markdown artifact sha256:06B17BB8960F968232450477C267E4CDB8D05E40B8C086B03323F426441F951B -->
