Productivity · HN · 🌐 International · via agentusecases.ai
A Claude Code and Codex skill redraws scanned pages and phone photos as PDFs with real text and vector graphics
A developer built a skill that rebuilds the whole page instead of just adding an OCR layer, and measured the gain with and without it on four models.
- Tools
- Claude Code, Codex, Tesseract
- Source
- news.ycombinator.com ↗
- Country
- 🌐 International
- Found via
- agentusecases.ai (Alex Finn) ↗
- Report date
- November 4, 2026
- Verified on
- November 15, 2026
See more: AI for developers · AI for teachers

What they did
On Hacker News, the author of the scan-to-vector project presented a skill for Claude Code and Codex that rebuilds scanned pages and phone photos as new PDFs: real text, vector diagrams and charts, and the original layout. Instead of putting an OCR layer over the image, the agent redraws the page. To fix the spots where agents went wrong, he added scripts that measure positions in scan pixels, an enlarged sheet with the doubtful words, an overlay of each rebuilt page on the original and a report of what is still missing.
How it went
According to the November 4, 2026 post, the test used synthetic pages with a known answer key (worksheets, tables, charts, flowcharts, forms and two column articles), half of them photographed at an angle with shadows. On two 9 page documents the skill had never seen, the score (which combines text, layout, figures and vector share, with 1.0 as perfect) rose from 0.841 to 0.997 on Haiku 5.5 and from 0.837 to 0.997 on Fable 5.1, and stayed near the ceiling on Sonnet 5.5 and Opus 5.5. The author says the first version, with detailed instructions only, did not improve quality.
Good to know
The test is synthetic and in printed English, the OCR uses Tesseract's English model, handwriting is harder and each page takes minutes of agent time. If you only need searchable text, the author himself points to OCRmyPDF. Public source checked before publishing.
The prompt
I have [number] scanned pages of [document type, for example a handout or a form]. For each page, transcribe the text keeping headings, columns, tables and numbering, describe each chart or diagram well enough to redraw it and list the words or numbers you could not read with confidence, with their position on the page. Do not make up anything that is unreadable.
Replace what is in [brackets]. Prompt written by us from the account, not a literal copy of the source. Do not paste other people’s personal data (privacy laws such as LGPD and GDPR apply).
Summary in our own words. Results as stated in the original account; we have not tested or audited them. Read the source ↗ Case found via agentusecases.ai (Alex Finn); text and prompt rewritten by us. Found a mistake?
Similar cases
01Estimating how long your AI plan will last before it runs out
A dev published an open calculation to estimate how many tokens fit into the Pro/Max plans.
02When your AI limit runs out in the middle of the day
A dev running four subagents across four repositories ran out of tokens and reflected on their dependence on AI.
03Sending AI summaries and research straight to your Kindle
A developer built a Go MCP in minutes that lets Claude or Codex send texts to a Kindle.
04Teaching an agent to use your bank's API
A developer created an open source skill so Codex and Claude Code can integrate with the Banco Inter API.
05A consultant builds his own invoicing system with Claude Code in four hours and stops spending six hours a month on billing
A JSON file with clients and hours becomes a branded PDF, goes out by email and gets an automatic reminder when payment is late.
06Vale uses Accenture AI to turn meetings into requirements and code in its ERP migration
In the Neo Vale project, Cognitive Digital Brain reviewed more than 270 requirements and brought the initial definition stage forward by up to three weeks in the move to SAP S/4HANA.
07Claude doubled the speed of a home Wi-Fi network
A user asked for help with slow internet; the agent ran tests, read the Mac's signal data and walked them through the router settings.
08Product manager turns scattered notes into a priority list
Ron Forbes dumps meeting notes into a folder and Claude Code returns summaries and tasks sorted by priority.