# PdfPageOverlayFit

Controls how an imported PDF page Form XObject fits its target rectangle.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPageOverlayFit.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageOverlayFit.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Controls how an imported PDF page Form XObject fits its target rectangle.

## Inheritance

- Enum
- PdfPageOverlayFit

## Usage

Explore 5 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 5

- Field [PdfPageOverlayFit.Contain](/api/pdf/officeimo-pdf-pdfpageoverlayfit/#field-contain)
- Field [PdfPageOverlayFit.Cover](/api/pdf/officeimo-pdf-pdfpageoverlayfit/#field-cover)
- Field [PdfPageOverlayFit.None](/api/pdf/officeimo-pdf-pdfpageoverlayfit/#field-none)
- Field [PdfPageOverlayFit.Stretch](/api/pdf/officeimo-pdf-pdfpageoverlayfit/#field-stretch)
- Property [PdfPageOverlayOptions.Fit](/api/pdf/officeimo-pdf-pdfpageoverlayoptions/#property-fit)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfPageOverlayFit None` [#](#field-none)

[PdfPageOverlayFit.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageOverlayFit.cs#L6)

Keep the source page at its visual size.

Value: `0`

`public const PdfPageOverlayFit Contain` [#](#field-contain)

[PdfPageOverlayFit.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageOverlayFit.cs#L8)

Preserve aspect ratio and fit entirely inside the target rectangle.

Value: `1`

`public const PdfPageOverlayFit Cover` [#](#field-cover)

[PdfPageOverlayFit.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageOverlayFit.cs#L10)

Preserve aspect ratio and cover the target rectangle, clipping overflow.

Value: `2`

`public const PdfPageOverlayFit Stretch` [#](#field-stretch)

[PdfPageOverlayFit.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfPageOverlayFit.cs#L12)

Scale independently in both dimensions to fill the target rectangle.

Value: `3`

<!-- PowerForge markdown artifact sha256:03888C6B7593255EB7F47A5B7C04C76AB2FE2E2B70C7C5646AB1D46D803F59A2 -->
