OptionalpageNamed paper size ("A4", "a3-landscape", "letter", …) — wins over width/height.
OptionalpageExplicit page width in points (default 612 = US Letter). Ignored if pageSize is set.
OptionalpageExplicit page height in points (default 792). Ignored if pageSize is set.
OptionalmarginUniform margin (points) or per-side margins. Default 36pt (0.5in).
OptionalheaderRunning header HTML painted in the top margin ({{page}} / {{pages}} tokens).
OptionalfooterRunning footer HTML painted in the bottom margin (same tokens).
OptionalheaderDistance from the top edge to the header block, in points (default 18).
OptionalfooterDistance from the bottom edge to the footer block, in points (default 18).
OptionalstartNumber assigned to the first page for {{page}} (default 1).
OptionalresourcesHost-downloaded external images, keyed by the exact URL referenced in the
HTML (<img src>). Obtain the list with
GigaPdfEngine.htmlNeededResources, fetch each, and pass the bytes
here — the engine never touches the network. data: URIs need no entry.
Page setup for GigaPdfEngine.htmlRenderWith.