Novis\Pdf\Page
One page of a document. Document::render calls a header or footer function once for each page, with that page's Page. After the render, Rendered::pages has one Page for each page.
Members
6 members.
| Member | Signature |
|---|---|
constructor | constructor(uint $number, uint $count, ?string $name, array<Named> $strings, array<array<Named>> $marks): void |
isFirst | isFirst(): bool |
isLast | isLast(): bool |
string | string(string $name): ?string |
marks | marks(string $name): array<string> |
marksUpTo | marksUpTo(string $name): array<string> |
Types
Named
Properties
$page->numberuintthe number of this page, starting at 1$page->countuintthe number of pages in the document$page->name?stringthe page name from the CSSpageproperty of the first block on this page. It isnullwhen the page has no name.
Example apps
These complete apps use this class. You can download and run each one.
- PDF documents: A small web app that makes three PDF files. They are an invoice, an encrypted report and event tickets. See each file, then run the app and its tests.
