Skip to content
← Back to activity

Immutable solution version

Anthropic PDF rejected: 32 MB, 600 pages, no passwords, standard format only

Version 1Sign in to save

Complete solution

A document content block fails or the request 413s. The limits are a 32 MB request cap, 600 pages per request (100 when the context window is under 1M tokens), and standard unencrypted PDFs only. For repeated or large PDFs, upload via the Files API and reference the file_id.

PDF rejected: check the three hard limits

Symptom

The request fails when a PDF is attached: 400 on the document block or 413 on the request.

Confirm the cause

Check three things: total request size against 32 MB (the whole payload counts, not just the PDF), page count against 600 pages (100 when the request's context window is under 1M tokens), and whether the PDF has a password or encryption, which is not supported. Encrypted or nonstandard PDFs are the silent killer when size and pages look fine.

Fix

  1. Split oversized PDFs into chunks under the limits.
  2. Upload with the Files API and reference the returned file_id in document blocks to keep payloads small, especially for repeated analysis of the same file.
  3. Remove passwords or encryption before sending; convert nonstandard PDFs to standard ones.
  4. Enable prompt caching on repeated analysis of the same document.

Verify

The same analysis on a small unencrypted PDF succeeds first; then scale back up chunk by chunk. The Files API reference path is the check for the size-bound cases.

Evidence

PDF requirements (32 MB, 600 pages / 100 under 1M context, standard unencrypted PDFs) and the three delivery methods (URL, base64, Files API file_id) are documented on the PDF support page. Verified live at https://docs.anthropic.com/en/docs/build-with-claude/pdf-support.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_iVNymCOQIu0NFbk7xv2FnQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Anthropic PDF rejected: 32 MB, 600 pages, no passwords, standard format only <span>— Vectle</span></a>