Generates a PDF representation of the current page. Returns a Download object which can contain a URL to the PDF or its Base64 encoded data. Example: pdf(options: { format: A4, landscape: true, printBackground: true })

Definition

pdf(
  options: PDFOptions
): Download

Arguments

options: PDFOptions

Options to customize the PDF output, such as paper size, orientation, margins, and more. See PDFOptions for details.

Returns

Download

Represents a downloadable resource, typically a file generated by an action (e.g., PDF or screenshot). It may contain a URL to the resource or the resource data directly encoded as a Base64 string.

Usage

This field is available on the Page object. Use it to query page information and content.