PageContext
Context passed to a page's header / footer builder. Lets the builder vary the rendered content per physical page — typically to inject the current page number or the document's total page count.
Properties
Link copied to clipboard
1-based page number currently being rendered.
Link copied to clipboard
total number of physical pages produced by the document. The renderer determines this with a dry-run pass before the real render so this value is always accurate, even when pages slice into multiple physical pages.