← All projects
Project record1 mention
Originally shared on Hacker News

Scan-to-vector

A skill for Claude Code and Codex that rebuilds scanned pages and phone photos as new PDFs with real text, vector diagrams and charts, and the original layout. It redraws the page rather than adding an OCR layer on top of the image, and is MIT licensed with its benchmark code in the repo.

Last shared
01 / The problem

What it addresses

Scanned pages and phone photos are just images, and existing tools only add an OCR layer on top; AI agents rebuilding them see a downscaled page, guess at positions and small digits, and miss content. The skill fixes the steps where agents go wrong by measuring in scan pixels, overlaying rebuilds on the scan, and listing what is still missing.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Scan-to-vector

    A skill for Claude Code and Codex that rebuilds scanned pages and phone photos as new PDFs with real text, vector diagrams and charts, and the original layout. It redraws the page rather than adding an OCR layer on top of the image, and is MIT licensed with its benchmark code in the repo.

    Problem: Scanned pages and phone photos are just images, and existing tools only add an OCR layer on top; AI agents rebuilding them see a downscaled page, guess at positions and small digits, and miss content. The skill fixes the steps where agents go wrong by measuring in scan pixels, overlaying rebuilds on the scan, and listing what is still missing.

    Posted by @Null3351 · Original source ↗

    Story title · @Null3351 · · Source ↗

    Show HN: Scan-to-vector – rebuild scanned pages as vector PDFs with an AI agent

    Submitted URL · @Null3351 · · Source ↗

    https://github.com/3351666087/scan-to-vector-skill

    Source text · @Null3351 · · Source ↗

    I built 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. It doesn't put an OCR layer on top of the image; it redraws the page.

    Source text · @Null3351 · · Source ↗

    You can install it as a Claude Code plugin with /plugin marketplace add 3351666087/scan-to-vector-skill followed by /plugin install scan-to-vector@scan-to-vector-skill, or with a one-line installer that also covers Codex. It's MIT licensed, and the benchmark code is in the repo if you want to try other models.

    Source text · @Null3351 · · Source ↗

    They see a downscaled page, so positions and small digits are guesses. A script now measures everything in scan pixels, and the agent reads doubtful words from one enlarged contact sheet per page.

    Source text · @Null3351 · · Source ↗

    the OCR step runs Tesseract's English model, so other scripts aren't supported yet and handwriting is harder. It also takes minutes of agent time per page, so if you only need searchable text, OCRmyPDF is the better tool.