Convert URL to PDF
buffer contains the PDF bytes (a Buffer in Node, or the runtime’s equivalent). The URL route supports SPAs and dynamic content: Chromium loads the page, runs JavaScript, and conversion runs after the page loads (and after any wait conditions you set). Optional conversion options (e.g. properties, header, footer, waitForSelector) can be passed as additional keys in the same object.
Capture URL as screenshot
buffer contains the image (default format is PNG). Use the properties option to set format ("png" | "jpeg" | "webp"), quality (for JPEG), and dimensions. See Options for full screenshot options.