Table of Contents

Class PageContext

Namespace
MiPdf.Layout
Assembly
MiPdf.dll

Information passed to header/footer callbacks.

public sealed class PageContext
Inheritance
PageContext
Inherited Members

Properties

Canvas

The canvas to draw the header, footer or background with.

public PdfCanvas Canvas { get; }

Property Value

PdfCanvas

ContentArea

The area inside the margins.

public PdfRectangle ContentArea { get; }

Property Value

PdfRectangle

Page

The page being drawn on.

public PdfPage Page { get; }

Property Value

PdfPage

PageArea

The full page (media box).

public PdfRectangle PageArea { get; }

Property Value

PdfRectangle

PageNumber

1-based page number within the pages created by the layout document.

public int PageNumber { get; }

Property Value

int

TotalPages

Number of pages created by the layout document; 0 in PageStarted, where it is not yet known.

public int TotalPages { get; }

Property Value

int