Docs
Rendering options
Use this page when you need Chromium print or screenshot controls: format, margins, headers and footers, waitUntil, viewport, clip. Field names are identical in JSON, Node, and Python.
Options are endpoint-specific. PDF and images share waitUntil and timeout. Field names in JSON, Node, and Python are the same (printBackground, not print_background).