# PdfPageOverlayOptions

Controls placement of a source PDF page imported as a Form XObject onto target pages.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Controls placement of a source PDF page imported as a Form XObject onto target pages.

## Inheritance

- object
- PdfPageOverlayOptions

## Remarks

The overlay rectangle uses physical points (1/72 inch) in the target page's rotated, crop-normalized frame, with a bottom-left origin after /UserUnit scaling.

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

- Method [PdfPageOverlayOptions.UseTargetPages](/api/pdf/officeimo-pdf-pdfpageoverlayoptions/#method-usetargetpages-string)

### Accepted by parameters 2

- Method [PdfDocumentStamper.OverlayPage](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-overlaypage-byte-officeimo-pdf-pdfpageoverlayoptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentStamper.UnderlayPage](/api/pdf/officeimo-pdf-pdfdocumentstamper/#method-underlaypage-byte-officeimo-pdf-pdfpageoverlayoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

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

## Methods

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

[PdfPageOverlayOptions.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L108)

Sets the target pages from a rich page-selector expression.

Parameters

**selector string required**

Returns

`PdfPageOverlayOptions`

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

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

One-based page number imported from the source PDF.

`public OfficePageSelector? TargetPages { get; set; }` [#](#property-targetpages)

[PdfPageOverlayOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L41)

Optional target-page selector. Null applies the imported page to every target page.

`public PdfPageOverlayFit Fit { get; set; }` [#](#property-fit)

[PdfPageOverlayOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L44)

How the imported page fits the target rectangle.

`public OfficeAlignment HorizontalAlignment { get; set; }` [#](#property-horizontalalignment)

[PdfPageOverlayOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L54)

Horizontal alignment inside the target page or target rectangle.

`public PdfVerticalAlign VerticalAlignment { get; set; }` [#](#property-verticalalignment)

[PdfPageOverlayOptions.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L62)

Vertical alignment inside the target page or target rectangle.

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

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

Optional target rectangle X coordinate in physical points in the normalized target-page frame.

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

[PdfPageOverlayOptions.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L71)

Optional target rectangle Y coordinate in physical points in the normalized target-page frame.

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

[PdfPageOverlayOptions.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L73)

Optional target rectangle width in physical points in the normalized target-page frame.

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

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

Optional target rectangle height in physical points in the normalized target-page frame.

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

[PdfPageOverlayOptions.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L78)

Rotation in degrees around the target rectangle origin, in the normalized target-page frame.

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

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

Imported page opacity from 0 through 1.

`public OfficeBlendMode BlendMode { get; set; }` [#](#property-blendmode)

[PdfPageOverlayOptions.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L94)

Blend operation used when the imported page is composited over existing content.

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

[PdfPageOverlayOptions.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L101)

Places the imported page before existing page content.

`public PdfLoadOptions? SourceReadOptions { get; set; }` [#](#property-sourcereadoptions)

[PdfPageOverlayOptions.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfPageOverlayOptions.cs#L104)

Read options used for the imported source PDF, including its password and permission policy.

<!-- PowerForge markdown artifact sha256:0E40AD31C7BF8F3DC59F06D9D01CB48BC817C5F5860D95DBCED51CEA2D1A7339 -->
