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
Footer
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
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
Index
The index of this page in the parent PDF document
public int Index { get; }
Property Value
IsLoadedPage
A flag indicating if this page was loaded from another PDF document
public bool IsLoadedPage { get; }
Property Value
Margins
Gets the page margins
public Margins Margins { get; }
Property Value
Orientation
The PDF page orientation
public PdfPageOrientation Orientation { get; set; }
Property Value
PageSize
Gets the size in points of this PDF page.
public PdfPageSize PageSize { get; }
Property Value
RotationAngle
Gets or sets the PDF page rotation angle
public RotationAngle RotationAngle { get; set; }
Property Value
ShowFooter
Gets or sets a flag indicating if the footer is displayed on this PDF page
public bool ShowFooter { get; set; }
Property Value
ShowHeader
Gets or sets a flag indicating if the header is displayed on this PDF page
public bool ShowHeader { get; set; }
Property Value
Methods
AddElement(PageElement)
Adds the given PDF element to this PDF page
public override AddElementResult AddElement(PageElement pageElement)
Parameters
pageElement
PageElementThe 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
floatThe 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
floatThe page header height
Returns
- Template
The page header