THPDFPageLayerKind Type
Selects which page layer slot a handler draws into and when it runs in relation to the page content
Declaration
THPDFPageLayerKind= (plkBackground, plkHeader, plkFooter, plkForeground);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
plkBackground |
Applied when the page opens, before the main content and before header layers |
plkHeader |
Applied as the page opens, after background layers and before the main content |
plkFooter |
Applied as the page closes, after the main content and before foreground layers |
plkForeground |
Applied as the page closes, after the main content and the footer layers |
Usage notes
- Register a handler for a kind with
AddPageLayer; each kind runs at most once per page even where several registrations exist - Handlers run between
GStateSaveandGStateRestoreso that graphics state changes do not leak into the page content - Applied kinds are recorded among the layout diagnostics under the names background, header, footer and foreground