> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# pdf

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

```graphql theme={null}
pdf(
  options: PDFOptions
): Download
```

## Arguments

### `options`

[PDFOptions](/reference/graphql/inputs/pdfoptions)

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

## Returns

[Download](/reference/graphql/objects/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](/reference/graphql/objects/page) object. Use it to query page information and content.
