Convert web pages or HTML into PDF documents with customizable page sizes, margins, landscape orientation, background graphics, and scaling options.
Instructions
Generate a PDF from a URL or HTML content. Supports page sizes, margins, landscape orientation, background graphics, and custom scaling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL to convert to PDF. Required unless html is provided. | |
| html | No | Raw HTML to convert to PDF. Alternative to url. | |
| pdfOptions | No | PDF layout and formatting options. | |
| width | No | Viewport width in pixels (default: 1280). | |
| height | No | Viewport height in pixels (default: 800). | |
| delay | No | Milliseconds to wait after page load before generating PDF. | |
| waitUntil | No | When to consider the page ready (default: load). |