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

# PDF Tools

> Merge, split, rotate, compress, watermark, protect and fill PDFs by asking the agent, or with the free browser tools

## Ask the agent

The [agent](https://docs.thedrive.ai/agent/overview.md) can work on your PDFs for you. Open the folder with your PDFs (or open the PDF itself), open the agent and describe what you want. You don't need to name a tool or a setting.

### What you get back

* **A new PDF**, such as a merged file or the pages you extracted, appears in the chat as a file card. **View** it, **Download** it, or click **Save to a folder**. See [Document Creation](https://docs.thedrive.ai/features/document-creation.md#getting-the-file).
* **Several new PDFs**, such as the parts of a split, appear together on one card. Click **Download all** for a zip, or **Save all to a folder**.
* **A change to a PDF you already have**, such as "rotate page 3 of this file", is made to that file. The agent asks first and keeps the previous version. On a connected drive, see [Undo on each drive](https://docs.thedrive.ai/agent/connected-drives.md#undo-on-each-drive).

If you'd rather keep the original as it is, ask for a copy: "Make a rotated copy of this PDF."

## What it can do

### Merge

```text theme={null}
Merge all the PDF invoices in this folder into one document, oldest first
```

You get one PDF with the files in the order you asked for.

### Split

```text theme={null}
Split this contract into separate files, one per section
```

```text theme={null}
Split this 40-page scan into files of 10 pages each
```

You get one PDF per part, together on one card.

### Extract or delete pages

```text theme={null}
Extract pages 5 to 10 into a new PDF
```

```text theme={null}
Remove pages 1 and 12 from this report
```

Extracting gives you a new PDF. Deleting pages changes the file, unless you ask for a copy.

### Rotate

```text theme={null}
Rotate pages 2 and 4 of this scan the right way up
```

### Reorder

```text theme={null}
Put the signature page at the end of this agreement
```

### Compress

```text theme={null}
Compress this PDF so it's small enough to email
```

You get a smaller copy. How much smaller depends on what's in the PDF.

### Watermark

```text theme={null}
Add a "CONFIDENTIAL" watermark to every page of this PDF
```

### Password-protect

```text theme={null}
Protect this PDF with a password
```

The agent adds a password that's needed to open the file. To work on a PDF that already has a password, give the agent the password so it can open it.

### Fill a form

```text theme={null}
Fill out this W-9 with the details from my company profile document
```

```text theme={null}
Fill in this application using the details in /HR/Jane Doe/
```

See [Filling forms](#filling-forms) below.

### Create a PDF

```text theme={null}
Summarize the contracts in this folder in a one-page PDF
```

```text theme={null}
Turn this note into a PDF I can print
```

See [Document Creation](https://docs.thedrive.ai/features/document-creation.md) for everything the agent can make.

### Pull text and tables out

```text theme={null}
Put the tables from this bank statement into a spreadsheet
```

The agent reads the PDF and gives you the tables as an Excel workbook or a CSV.

## Filling forms

The agent fills a form from your files. Point it at the form and at the document with the information, such as a profile, an ID or last year's return.

**Forms with fields to fill in.** Many official forms have boxes you can type into. The agent reads every field, including checkboxes, option buttons and drop-down lists, and fills them from your source. It can flatten the result, so the answers become part of the page and can't be changed by accident, or leave the fields editable. Say which you want.

**Forms without fields.** Many forms people keep, like a filed return, a signed application or a printed form, have no fields: the values are printed on the page. To change a value on one of these, the agent covers the old value and writes the new one in the same place, at a matching size. It looks at each changed page to check that every new value sits where the old one was, and tells you which values it changed and any it couldn't place.

**Scans that are only pictures.** If a form is a scan with no text on it that the agent can find, it can't place new values reliably. It says so and stops, rather than giving you an unchanged copy under a new name.

> [!TIP]
>
> Ask the agent to fill a copy if you want to keep the blank form: "Fill in a copy of this form using the details in my profile document."

## Limits

* **Each PDF the agent works on can be up to 50 MB.**
* **A finished file up to 25 MB appears in the chat.** A bigger one, up to 50 MB, can't appear in the chat, but the agent can save it straight into a folder you name.
* **A file you don't save stays in the chat for 30 days.**
* **The preview can't open password-protected PDFs.** Download the file and open it in a PDF app to enter the password.

Each request counts as one task. See [Usage and limits](https://docs.thedrive.ai/account/usage-and-limits.md).

## Free browser tools

The Drive AI also has 15 free tools for PDFs and images at [thedrive.ai/tools](https://thedrive.ai/tools). They run in your browser, so your files stay on your device, and you don't need an account.

![The free tools page at thedrive.ai/tools with the grid of PDF and image tools](https://mintcdn.com/thedriveai/YatMpyH-kbr3S5Ie/images/tools-page.png?fit=max\&auto=format\&n=YatMpyH-kbr3S5Ie\&q=85\&s=6e19f5e68118a4b42540356c09bbb5af)

| Tool | What it does |
| - | - |
| **Merge PDFs** | Combine up to 20 PDF files into one. Drag to reorder them first. |
| **Split PDF** | Extract pages or split a PDF into separate files. |
| **Compress PDF** | Make a PDF smaller. |
| **Rotate PDF** | Rotate pages within a PDF. |
| **Delete PDF Pages** | Remove pages you don't want. |
| **Reorder PDF Pages** | Drag pages into a new order. |
| **Add Page Numbers** | Number every page. Choose where, the format, the font size and the starting number. |
| **Watermark PDF** | Add a text watermark across every page. |
| **Sign PDF** | Add your signature to a PDF. |
| **Signature Generator** | Create a signature and download it as a transparent PNG. |
| **PDF to JPG** | Turn PDF pages into JPG images, one per page. |
| **JPG to PDF** | Turn up to 50 JPG images into a PDF, one page each. |
| **PNG to PDF** | Turn up to 50 PNG images into a PDF, one page each. |
| **Image to PDF** | Turn up to 50 images (JPG, PNG, WebP, GIF, BMP or TIFF) into a PDF. |
| **Compress Images** | Make up to 20 JPG or PNG images smaller. |

> [!NOTE]
>
> **Sign PDF** places your signature on a PDF yourself. To send a document for others to sign, use [E-Sign](https://docs.thedrive.ai/features/e-sign.md).

## What's next?

> [card] [E-Sign](https://docs.thedrive.ai/features/e-sign.md)
>
> Send PDFs for legally binding signatures.

> [card] [Document Creation](https://docs.thedrive.ai/features/document-creation.md)
>
> Create documents, spreadsheets and presentations.


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