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

# Handpick PDF pages

> Tailor PDF content by extracting specific page ranges from documents.

Utilize the `pageRanges` option to specify which pages to include in the PDF output. See [PDF options](/api-reference/pdf-options) for more options.

## Example

This example generates a PDF from the [Wikipedia page about PDF](https://en.wikipedia.org/wiki/PDF), extracting pages 1, 2, and 18 through 19.

<CodeGroup>
  <Snippet file="code-group/handpick-pdf-pages.md" />
</CodeGroup>

## Output

<Frame>
  <iframe height={500} width={'100%'} src="https://assets.doczilla.app/examples/handpick-pdf-pages.pdf" />
</Frame>
