OmniscioGuidesPDF too large
Claude Code: PDF too large
Last checked against Anthropic's documentation on November 21, 2026. By the Omniscio team. Updated .
What is the exact message?
PDF too large (max 100 pages, 20MB). Try reading the file a different way (e.g., extract text with pdftotext).Two more forms cover a locked or unreadable file:
PDF is password protected. Try using a CLI tool to extract or convert the PDF.The PDF file was not valid. Try converting it to text first (e.g., pdftotext).The three PDF messages are the non-interactive forms. In an interactive session, Claude Code instead asks you to double press Esc and try again.
When Claude reads a page range instead, a missing renderer prints its own line:
pdftoppm is not installed. Install poppler-utils (e.g. `brew install poppler` or `apt-get install poppler-utils`) to enable PDF page rendering.What does it mean?
The PDF you attached could not be processed. Anthropic states each case in plain terms: the file is larger than the page and size limits in the message, it is password protected, or it is not a valid PDF.
The message's own advice is to read the file a different way, so the fix is to change how the document reaches Claude rather than to retry the same attachment.
The pdftoppm line is different: it appears when Claude tries to read a page range and the machine has no PDF renderer. Nothing is wrong with the file there; the helper that turns pages into images is missing.
How do I fix it?
- If Claude Code asked you to press Esc twice, do that first. It takes you back to before the attachment; then use one of the routes below.
- For a file over 100 pages or 20MB, read it in parts. In Claude Code, say
Read pages 1-20 of report.pdf. Claude reads only those pages, and you ask for the next range when you need more. This route renders pages withpdftoppm, so it needs poppler-utils, below. - Or extract the text. In a terminal,
pdftotext report.pdf report.txtwrites a plain-text copy; then ask Claude to readreport.txt.pdftotextis part of the same poppler package aspdftoppm, so the install step below covers it too. - For a password-protected or invalid PDF, remove the password or re-export the file from the source application. The message's other route is a command-line tool that extracts or converts it:
pdftotext report.pdf report.txtdoes that where poppler is installed. Then point Claude at the result. - If
pdftoppm is not installed, install poppler-utils. Use one of the commands the message gives:brew install popplerorapt-get install poppler-utils, whichever matches your system. Elsewhere, install a poppler build that putspdftoppmon yourPATH.
Reading a page range sends Claude only those pages, not the whole attachment.
How do I know it worked?
- Claude answers about the document's contents instead of printing the same PDF line again.
- If you used a page range, the answer covers those pages; ask for another range to read further.
- If you converted the file, the quoted text matches what
pdftotextwrote to the output file.
Where these answers come from
- Anthropic's error reference, PDF errors, read November 21, 2026: the three message forms, the note that an interactive session prompts instead, the two fixes, the
pdftoppmmessage and the poppler-utils install routes. - Read tool behavior, which the same entry points to for which PDFs are read by page range.
Common questions
What are the PDF limits in Claude Code?
The message names them: at most 100 pages and 20MB. Anthropic's advice for a file over either limit is to read a page range or extract the text, not to retry the attachment.
Can Claude Code read just part of a PDF?
Yes. Ask Claude to read a page range with the Read tool. That route renders pages with pdftoppm, so it needs poppler-utils on the machine; the message gives two example install commands for it.
Why does Claude Code say pdftoppm is not installed?
A page-range read turns the pages into images with pdftoppm, which ships with poppler-utils. Install it with the command the message names, or use a poppler build that puts pdftoppm on your PATH.
Does a password-protected PDF mean something is broken?
No. Anthropic lists it as a PDF Claude Code cannot process. Remove the password or re-export the file from its source application; the message's other route is a command-line tool that extracts or converts it.