# PdfCanvasStampOptions

Controls arbitrary visual canvas content stamped onto existing PDF pages.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfCanvasStampOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfCanvasStampOptions.cs#L14)

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Controls arbitrary visual canvas content stamped onto existing PDF pages.

## Inheritance

- object
- PdfCanvasStampOptions

## Usage

Explore 3 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 [PdfCanvasStampOptions.UseRenderingOptions](/api/pdf/officeimo-pdf-pdfcanvasstampoptions/#method-userenderingoptions-officeimo-pdf-pdfcreateoptions)
- Method [PdfCanvasStampOptions.UseTargetPages](/api/pdf/officeimo-pdf-pdfcanvasstampoptions/#method-usetargetpages-string)

### Accepted by parameters 1

- Method [PdfDocumentStamper.Content](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-content-action-officeimo-pdf-pdfpagecanvas-officeimo-pdf-pdfstamppagecontext-officeimo-pdf-pdfcanvasstampoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[PdfCanvasStampOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfCanvasStampOptions.cs#L14)

## Methods

`public PdfCanvasStampOptions UseRenderingOptions(PdfCreateOptions options)` [#](#method-userenderingoptions-officeimo-pdf-pdfcreateoptions)

[PdfCanvasStampOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfCanvasStampOptions.cs#L56)

Uses cloned generated-PDF rendering options for visual canvas content.

Parameters

**options OfficeIMO.Pdf.PdfCreateOptions required**

Returns

`PdfCanvasStampOptions`

`public PdfCanvasStampOptions UseTargetPages(string selector)` [#](#method-usetargetpages-string)

[PdfCanvasStampOptions.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfCanvasStampOptions.cs#L50)

Sets target pages from a rich page-selector expression.

Parameters

**selector string required**

Returns

`PdfCanvasStampOptions`

## 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 OfficePageSelector? TargetPages { get; set; }` [#](#property-targetpages)

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

Optional target-page selector. Null applies the canvas callback to every page.

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

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

Places generated visual content before the existing page content streams.

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

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

Canvas opacity from zero through one.

`public PdfCreateOptions? RenderingOptions { get; set; }` [#](#property-renderingoptions)

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

Generated-PDF rendering options used for the temporary visual overlay. The value is cloned on assignment and retrieval. Page geometry, margins, encryption, page chrome, and page decorations are controlled by the stamping operation. Use this to carry registered embedded fonts, text shaping, image handling, and other visual rendering configuration into canvas content. Tagged structure mode must remain disabled because a visual page import cannot merge the temporary document's structure tree into the target.

<!-- PowerForge markdown artifact sha256:64F0EC555CB3AA7C1A8C61A16D82248E5B3B97A5AC437C727969502DE5C5F8FD -->
