# PdfImageStampOptions

Options used when adding an image stamp or image watermark to parsed PDF pages.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Options used when adding an image stamp or image watermark to parsed PDF pages.

## Inheritance

- object
- PdfImageStampOptions

## Usage

Explore 4 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 [PdfImageStampOptions.UsePageRange](/api/pdf/officeimo-pdf-pdfimagestampoptions/#method-usepagerange-int32-int32)
- Method [PdfImageStampOptions.UsePageRanges](/api/pdf/officeimo-pdf-pdfimagestampoptions/#method-usepageranges-officeimo-pdf-pdfpagerange)

### Accepted by parameters 2

- Method [PdfDocumentStamper.Image](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-image-byte-officeimo-pdf-pdfimagestampoptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentStamper.ImageWatermark](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-imagewatermark-byte-officeimo-pdf-pdfimagestampoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

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

## Methods

UsePageRange 2 overloads

`public PdfImageStampOptions UsePageRange(int firstPage, int lastPage)` [#](#method-usepagerange-int32-int32)

[PdfImageStampOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L38)

Selects an inclusive one-based page range to stamp.

Parameters

**firstPage int required**

**lastPage int required**

Returns

`PdfImageStampOptions`

`public PdfImageStampOptions UsePageRange(PdfPageRange pageRange)` [#](#method-usepagerange-officeimo-pdf-pdfpagerange)

[PdfImageStampOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L46)

Selects an inclusive one-based page range to stamp.

Parameters

**pageRange OfficeIMO.Pdf.PdfPageRange required**

Returns

`PdfImageStampOptions`

`public PdfImageStampOptions UsePageRanges(params PdfPageRange[] pageRanges)` [#](#method-usepageranges-officeimo-pdf-pdfpagerange)

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

Selects inclusive one-based page ranges to stamp. Overlapping ranges are treated as one page selection set in first-seen order.

Parameters

**pageRanges OfficeIMO.Pdf.PdfPageRange[] required**

Returns

`PdfImageStampOptions`

## 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 long MaximumEncodedImageBytes { get; set; }` [#](#property-maximumencodedimagebytes)

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

Maximum encoded image bytes accepted for a stamp or watermark. Defaults to 128 MiB.

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

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

One-based page numbers to stamp. When null or empty, every page is stamped.

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

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

Physical X coordinate of the image origin from the unrotated PDF origin. When null, stamps sit 36 points from the lower-left corner of the displayed page and watermarks center in it.

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

[PdfImageStampOptions.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L69)

Physical Y coordinate of the image origin from the unrotated PDF origin. When null, stamps sit 36 points from the lower-left corner of the displayed page and watermarks center in it.

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

[PdfImageStampOptions.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L75)

Physical width of the stamped image. When null, each image pixel contributes one point.

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

[PdfImageStampOptions.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L86)

Physical height of the stamped image. When null, each image pixel contributes one point.

`public double RotationDegrees { get; set; }` [#](#property-rotationdegrees)

[PdfImageStampOptions.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L98)

Counter-clockwise image rotation in degrees around the image origin, relative to the displayed page. On a page with /Rotate, an unrotated image stays upright as the page is viewed.

`public double Opacity { get; set; }` [#](#property-opacity)

[PdfImageStampOptions.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L110)

Image opacity from 0 through 1, multiplied by any intrinsic image alpha. Defaults to 1.

`public bool BehindContent { get; set; }` [#](#property-behindcontent)

[PdfImageStampOptions.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfImageStampOptions.cs#L122)

Places the new image content stream before existing page content when true.

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