Table of Contents

Class PdfPage

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

Represents a PDF document page

[ClassInterface(ClassInterfaceType.AutoDual)]
public class PdfPage : ElementsRenderer
Inheritance
PdfPage
Inherited Members

Properties

Document

The parent PDF document of this page

public Document Document { get; }

Property Value

Document

Represents the custom footer template for the page. It will replace the document footer template on this page.

public Template Footer { get; set; }

Property Value

Template

Header

Represents the custom header template for the page. It will replace the document header template on this page.

public Template Header { get; set; }

Property Value

Template

Index

The index of this page in the parent PDF document

public int Index { get; }

Property Value

int

IsLoadedPage

A flag indicating if this page was loaded from another PDF document

public bool IsLoadedPage { get; }

Property Value

bool

Margins

Gets the page margins

public Margins Margins { get; }

Property Value

Margins

Orientation

The PDF page orientation

public PdfPageOrientation Orientation { get; set; }

Property Value

PdfPageOrientation

PageSize

Gets the size in points of this PDF page.

public PdfPageSize PageSize { get; }

Property Value

PdfPageSize

RotationAngle

Gets or sets the PDF page rotation angle

public RotationAngle RotationAngle { get; set; }

Property Value

RotationAngle

ShowFooter

Gets or sets a flag indicating if the footer is displayed on this PDF page

public bool ShowFooter { get; set; }

Property Value

bool

ShowHeader

Gets or sets a flag indicating if the header is displayed on this PDF page

public bool ShowHeader { get; set; }

Property Value

bool

Methods

AddElement(PageElement)

Adds the given PDF element to this PDF page

public override AddElementResult AddElement(PageElement pageElement)

Parameters

pageElement PageElement

The element to be added to this page

Returns

AddElementResult

The result of adding the element to this page

AddFooterTemplate(float)

Creates a template with the specified height and automatically set the Footer property of this page with the created template.

public Template AddFooterTemplate(float height)

Parameters

height float

The footer height

Returns

Template

The page footer

AddHeaderTemplate(float)

Creates a template with the specified height and automatically set the Header property of this page with the created template.

public Template AddHeaderTemplate(float height)

Parameters

height float

The page header height

Returns

Template

The page header