> ## 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](https://docs.doczilla.app/api-reference/pdf-options.md) 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.

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

## Output

[https://assets.doczilla.app/examples/handpick-pdf-pages.pdf](https://assets.doczilla.app/examples/handpick-pdf-pages.pdf)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.