# MarkdownPdfPageDecoration

Page-level visual treatment applied by Markdown PDF themes through the shared OfficeIMO.Pdf engine.

Class 

`OfficeIMO.Markdown.Pdf`

**Namespace**

`OfficeIMO.Markdown.Pdf`

**Assembly**

`OfficeIMO.Markdown.Pdf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[MarkdownPdfPageDecoration.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L32)

**Modifiers**

sealed

Page-level visual treatment applied by Markdown PDF themes through the shared OfficeIMO.Pdf engine.

## Inheritance

- object
- MarkdownPdfPageDecoration

## Usage

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

- Method [MarkdownPdfPageDecoration.AddBackgroundShape](/api/markdown-pdf/officeimo-markdown-pdf-markdownpdfpagedecoration/#method-addbackgroundshape-officeimo-pdf-pdfpagebackgroundshape)
- Method [MarkdownPdfPageDecoration.ClearBackgroundShapes](/api/markdown-pdf/officeimo-markdown-pdf-markdownpdfpagedecoration/#method-clearbackgroundshapes)
- Method [MarkdownPdfPageDecoration.Clone](/api/markdown-pdf/officeimo-markdown-pdf-markdownpdfpagedecoration/#method-clone)
- Method [MarkdownPdfPageDecoration.Report](/api/markdown-pdf/officeimo-markdown-pdf-markdownpdfpagedecoration/#method-report)
- Method [MarkdownPdfPageDecoration.TechnicalDocument](/api/markdown-pdf/officeimo-markdown-pdf-markdownpdfpagedecoration/#method-technicaldocument)
- Property [MarkdownPdfStyle.PageDecoration](/api/markdown-pdf/officeimo-markdown-pdf-markdownpdfstyle/#property-pagedecoration)

Filter members 

Show inherited

## Constructors

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

[MarkdownPdfPageDecoration.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L32)

## Methods

`public MarkdownPdfPageDecoration AddBackgroundShape(PdfPageBackgroundShape shape)` [#](#method-addbackgroundshape-officeimo-pdf-pdfpagebackgroundshape)

[MarkdownPdfPageDecoration.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L60)

Adds a reusable page background shape.

Parameters

**shape OfficeIMO.Pdf.PdfPageBackgroundShape required**

Returns

`MarkdownPdfPageDecoration`

`public MarkdownPdfPageDecoration ClearBackgroundShapes()` [#](#method-clearbackgroundshapes)

[MarkdownPdfPageDecoration.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L69)

Removes all page background shapes from this decoration profile.

Returns

`MarkdownPdfPageDecoration`

`public MarkdownPdfPageDecoration Clone()` [#](#method-clone)

[MarkdownPdfPageDecoration.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L74)

Creates a detached copy.

Returns

`MarkdownPdfPageDecoration`

`public static MarkdownPdfPageDecoration Report()` [#](#method-report)

[MarkdownPdfPageDecoration.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L35)

Creates the built-in report page decoration profile.

Returns

`MarkdownPdfPageDecoration`

`public static MarkdownPdfPageDecoration TechnicalDocument()` [#](#method-technicaldocument)

[MarkdownPdfPageDecoration.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L47)

Creates the built-in technical document page decoration profile.

Returns

`MarkdownPdfPageDecoration`

## 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 OfficeColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[MarkdownPdfPageDecoration.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L15)

Optional page background color applied before page content is rendered.

`public PdfPageBorder? PageBorder { get; set; }` [#](#property-pageborder)

[MarkdownPdfPageDecoration.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L19)

Optional page border applied before page content is rendered.

`public IReadOnlyList<PdfPageBackgroundShape>? BackgroundShapes { get; set; }` [#](#property-backgroundshapes)

[MarkdownPdfPageDecoration.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L25)

Optional page background shapes applied before page content is rendered.

`public bool RespectExistingPdfOptions { get; set; }` [#](#property-respectexistingpdfoptions)

[MarkdownPdfPageDecoration.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Markdown.Pdf/MarkdownPdfPageDecoration.cs#L32)

When true, explicit low-level PdfCreateOptions values take precedence over this theme decoration.

<!-- PowerForge markdown artifact sha256:985D8050E630BCE4A011A9BAC03E8BA78641A475F83476CBCD9464872E90B084 -->
