THPDFPageLayerKind Type
Selects which page layer slot a handler draws into and when it runs relative 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, before header layers |
plkHeader |
Applied when the page opens, after background layers and before the main content |
plkFooter |
Applied when the page closes, after the main content and before foreground layers |
plkForeground |
Applied when the page closes, after the main content and footer layers |
Usage notes
- Register a handler for a kind with
AddPageLayer; each kind runs at most once per page even with several registrations - Handlers execute between
GStateSaveandGStateRestoreso graphics state changes do not leak into the page content - Applied kinds are recorded as layout diagnostics under the names background, header, footer and foreground