Claude Code OCR: how to pull the tables out of a PDF

A supplier sends a PDF price sheet and you want the size and price table in a spreadsheet. Claude Code can open a PDF and describe it, but that is reading, not OCR: nothing is extracted, and tables come back as prose. With the Actionway Skill installed, Claude Code OCR means sending the PDF — up to 40 pages per call — to the document OCR service from $0.01 per item, settled by usage, and getting the tables back as data. The answers below come from doing exactly that with a one-page wholesale sheet; the run took 47 seconds.

连接你的 Agent

Can Claude Code read the PDF by itself?

Yes, up to a point. Claude Code can open a PDF or an image and tell you what it sees, and for a glance at a short document that is enough. What it cannot do is hand you the numbers as numbers. Ask it for the price table and you get a paragraph that describes the table; ask it for a 40-page filing and it runs out of room before the end. OCR — optical character recognition, software that turns a picture of text into actual text — is a different job, and Claude Code has no OCR service of its own.

What does OCR give me that reading does not?

A file. The document OCR service returns the page as text with the tables kept as tables — every row, every cell, in order — plus any images it lifted out of the document. Because the result is a file in your project, the follow-up is ordinary local work the agent does for free: turn a table into CSV, search the text, compare this quarter's sheet with last quarter's. That is what makes a 30-page report one call instead of 30 screenshots.

What does it cost, and how do I run it?

From $0.01 per item, settled by actual usage with a cap per call, so a one-page sheet and a forty-page filing do not cost the same and the receipt shows the settled amount. You run it by asking; the session below is the whole thing.

你说

OCR this wholesale sheet PDF and give me the size and price table as CSV.

AGENT 回复

Document OCR. Two ways to run it, plus the no-cost alternative:

  • Document OCR · PDF$0.01 per itema PDF of up to 40 pages, settled per item processed; text and tables out
  • Document OCR · image$0.01 per itemsame service for a screenshot, photo, or scan
  • Read it directlyno Actionway callClaude Code looks at the file itself; fine for a glance, nothing extracted to a file

你选定: Document OCR · PDF

  • Sends the PDF's address to the document OCR service — it starts as a background job
  • Waits on the job; this one finished in 47 seconds
  • Saves the result into an outputs/ folder in your project (that is where every generated file lands), converts the first table to CSV, and prints it

结果

SKU,Size (EU),Size (US),Colour,Units per carton,Wholesale / pair,Suggested retail
EWS-GUM-38,38,6,White / gum sole,12,$31.50,$89.00
EWS-GUM-39,39,6.5,White / gum sole,12,$31.50,$89.00
EWS-GUM-40,40,7,White / gum sole,12,$31.50,$89.00
EWS-GUM-41,41,8,White / gum sole,12,$32.00,$89.00
EWS-GUM-42,42,9,White / gum sole,12,$32.00,$89.00
EWS-GUM-43,43,10,White / gum sole,12,$32.50,$89.00
EWS-GUM-44,44,11,White / gum sole,12,$32.50,$89.00
EWS-GUM-45,45,12,White / gum sole,6,$33.00,$89.00

1 item · Document OCR · 1 page · $0.01 per item · settled by actual usage after completion

That is a real session, unedited. The PDF was a one-page sample supplier sheet for the sneaker in our demo series — three tables: sizes and prices, lead times, materials. All three came back with every cell in place; the CSV above is the first one, converted locally. The run went through Actionway's document OCR capability; the Skill installed with the CLI is what told Claude Code the service existed, what it costs, and how to hand it a file.

What exactly comes back?

Text in reading order, page by page, with each table returned as table markup — rows and cells, not a picture of a grid — and any embedded images saved alongside. Headings survive as headings. The agent writes all of it into outputs/ and then does whatever you asked with it: CSV for one table, a Markdown file for the whole document, a comparison against a file you already have. Nothing in that second step is charged.

What can I feed it?

A PDF of up to 40 pages, an image — screenshot, photo of a page, scan — or a generic file, each by its web address; a local file is registered as an asset first, which the agent does for you. A financial statement comes back with the columns intact, ready to cross-check against the stock and company data services; a scanned contract comes back searchable. There is no subscription; one balance covers every capability in the catalog.

How does the session decide what to run?

Before replying, the agent checked the capability index the Skill keeps on disk, so the first message already carried the plan: the service, its price, and the honest alternative of just looking at the file. The list is neutral — no default, no recommendation. Picking an option is the approval: the call runs at the shown price, and if the wallet cannot cover it the agent stops before anything is charged and gives you a top-up link with the amount prefilled. OCR runs as a job, so the agent waits on it rather than you polling.

Set it up once

npm install --global @actionway/cli@latest
actionway init
mkdir -p "$HOME/.claude/skills"
cp -R "$HOME/.actionway/skill/actionway" "$HOME/.claude/skills/actionway"
init shows a short code and a web address — approve it in any browser — and stages the Actionway Skill at ~/.actionway/skill/actionway. The last two lines copy it to ~/.claude/skills/actionway, where Claude Code loads Skills; restart Claude Code or open a new session afterwards. Windows paths are on the get started page.

You need Node.js 20 or newer and an Actionway account; after sign-in the agent tells you your wallet balance and, if it is empty, links you straight to top-up. Prefer a plugin or a Remote MCP server to the command line? Both end at the same catalog and the same wallet — the get started page lists the steps per client side by side.

常见问题

Can Claude Code do OCR?Not as a built-in — it can look at a PDF or an image and describe it, but nothing is extracted. With the Actionway Skill installed it sends the file to the document OCR service, from $0.01 per item settled by usage, and saves the text and tables into your project.

Can Claude Code read PDFs?It can open one and summarize what it sees, within its context limit. For a PDF of up to 40 pages that you need as data — tables intact, searchable, comparable — the OCR service returns the whole document in a single call.

How do I extract a table from a PDF with Claude Code?Ask for it: "OCR this PDF and give me the price table as CSV." The agent runs the OCR service, gets the table back as rows and cells, and converts it locally at no extra charge; the one-page sheet in this guide took 47 seconds.

在你的 AGENT 里试试

连接一次,整个目录都能用。

连接 Actionway 后,Agent 自己找到合适的服务,每次执行前给出美元报价,按次从钱包扣费。

连接你的 Agent