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

# Validate a PDF

> Claude extracts the text from a PDF and ZeroDrift flags it line by line, with the reason for each flag.

**Install first.** These guides need the ZeroDrift plugin in Claude Code, which is in preview. Install it and sign in on the [Claude Plugin](https://docs.zerodrift.com/claude-plugin.md) page, then run `/zerodrift:status` to confirm.

Give Claude a PDF and ask it to check the content with ZeroDrift. Claude reads the PDF, pulls out the text, and sends it to ZeroDrift. You get flags per line, each with the rule it broke.

ZeroDrift has no native PDF support. It never opens your file. Claude does the reading and sends text, so the check is only as complete as what Claude extracts.

## Before you start

* A PDF Claude can read: attach it to the conversation, or point Claude at a file it can open.
* A PDF with text that would break your active rules, if you want to see flags.

## Prompts

```text theme={null}
Read this PDF, then validate it with ZeroDrift and list every flagged line with the reason.
```

```text theme={null}
Summarize this PDF, then run the full text through ZeroDrift. Tell me which sections have flags.
```

```text theme={null}
Extract the text from this PDF and validate it with ZeroDrift. Do not rewrite anything.
```

## What you see

1. Claude reads and, if you asked, summarizes the PDF.
2. Claude passes the extracted text to the ZeroDrift `validate` tool, and shapes it into plain text first.
3. ZeroDrift returns the outcome, then each flagged line with its line number, a short quote and the rules it breaks (severity and policy).
4. Claude explains each flagged line in a sentence.

A flagged result looks like this:

```text theme={null}
ZeroDrift: Flagged — fix before sending (3 issues on 2 lines: 2 do not send, 1 caution)
```

Line 12: "Our fund has never lost money for clients."

| Severity | Rule | Policy |
| - | - | - |
| Do not send | Misleading performance claim | US Securities & Investment Communications |
| Do not send | Performance disclaimer missing | US Securities & Investment Communications |

Line 27: "Act now. Spots are limited."

| Severity | Rule | Policy |
| - | - | - |
| Caution | Urgency pressure tactics | US Marketing Channel Mechanics |

Line 12 and line 27 in this example refer to the text Claude extracted, not to a page and line of the PDF. Ask Claude to point to the page and section each flagged line came from.

## Limits

* **No native PDF support.** Scanned PDFs, images and complex layouts depend on how well Claude extracts the text. Compare Claude's extraction against the PDF if the result matters.
* **Line numbers refer to the extracted text.** They match the text Claude sent, not the page and line of the PDF.
* **Long documents can produce long flag lists.** A single result lists up to 20 flagged lines and summarizes the rest by rule. The full list is in Activity. Do not read a short list as a clean document: check the counts in the outcome line.
* **Only what Claude sends is checked.** If Claude summarizes instead of sending the full text, ZeroDrift checks the summary. Ask for the full text to be validated.
* **Rate limit.** 50 requests per minute for a single validation.
* **Detection only.** ZeroDrift does not rewrite the text.
* **Sensitive content.** The text goes to ZeroDrift. See [Data retention](https://docs.zerodrift.com/data-retention.md) and [Security](https://docs.zerodrift.com/security.md).

For API-based long documents, see [Long-Form Content](https://docs.zerodrift.com/guides/long-form-content.md).


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