How to Get PDF Info with Claude

Get PDF metadata with Claude and ToolRouter. Check page count, author, and file details from any URL.

Tool
PDF icon
PDF

Claude uses PDF metadata to make decisions — check whether a document is text-searchable before trying to extract content, verify it is the right version before merging, or confirm the author before citing it. The metadata step takes seconds and prevents wasted effort downstream.

Connect ToolRouter to Claude

1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Let Claude set you up Open Claude

Steps

Once connected (see setup above), use the PDF tool:

  1. Ask: "Get info about this PDF: [paste URL]"
  2. Claude returns metadata including page count, author, and creation date
  3. Ask: "Is this PDF text-searchable or an image scan?"
  4. Use the metadata to decide whether to extract text or request a different version

Example Prompt

Try this with Claude using the PDF tool
Get the metadata for this PDF document and tell me the page count, author, creation date, and whether it contains extractable text: https://example.com/report.pdf

Tips

  • Check page count before merging to verify your final document will have the expected length
  • Creation date helps confirm you have the most recent version of a document
  • Use get_info as a quick validation step before running heavier extract_text calls