What do you want to do?
3 use cases
-
Make your scanned PDFs searchable
Install OC Rmy PDF and add a hidden text layer to scans so you can search and copy text.
View prompt
Install ocrmypdf/OCRmyPDF and run it on every PDF in <folder> with `--output-type pdfa` and `--deskew`, writing results to <output folder>. Skip files that already have text and report the size before and after.
-
OCR documents in French, Chinese or mixed languages
Install Tesseract language packs and tell OC Rmy PDF which languages to look for.
View prompt
Using ocrmypdf/OCRmyPDF, install the Tesseract language packs for <languages> and OCR <files> with `-l <codes>`. Then search each output for <word> to confirm the text layer is correct.
-
OCR a whole archive in place, safely
Process thousands of pages across all CPU cores, updating files only when OCR succeeds.
- REPO
ocrmypdf/OCRmyPDF - Claude Code
- Codex
- Cursor
- Life admin
- Intermediate
View prompt
Write a script that runs ocrmypdf/OCRmyPDF in place on every PDF under <archive folder>, logs successes and failures to a CSV, and never overwrites a file when OCR fails. Run it on a small test folder first and show me the log.
- REPO
Quick start with OC Rmy PDF
- Check you have what it needs: Linux, Windows (or WSL), macOS or FreeBSD, or the Docker image; Ghostscript and Tesseract OCR installed; Tesseract language packs for non-English documents.
- Open ocrmypdf/OCRmyPDF on GitHub and read the README and license.
- Install it, for example
apt install ocrmypdfon Debian or Ubuntu, orbrew install ocrmypdfon macOS - Add an OCR layer with
ocrmypdf --output-type pdfa input.pdf output.pdf - Straighten crooked scans with
ocrmypdf --deskew input.pdf output.pdf - Turn a photo into a one page PDF with
ocrmypdf input.jpg output.pdf
These steps come from our top use case, Make your scanned PDFs searchable, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ocrmypdf/OCRmyPDF
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forAnyone with scanned paperwork, books or archives who wants searchable PDFs without sending files to a cloud service.
- Why it is hot35k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/ocrmypdf/OCRmyPDF ยท Back to Hot repos
Requirements
- Linux, Windows (or WSL), macOS or FreeBSD, or the Docker image
- Ghostscript and Tesseract OCR installed
- Tesseract language packs for non-English documents
Add this badge to your README
Maintain OC Rmy PDF? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/ocrmypdf-ocrmypdf/?utm_source=github&utm_medium=badge&utm_campaign=ocrmypdf-OCRmyPDF)
HTML
<a href="https://dedupedai.com/use-cases/ocrmypdf-ocrmypdf/?utm_source=github&utm_medium=badge&utm_campaign=ocrmypdf-OCRmyPDF"><img src="https://dedupedai.com/badge/ocrmypdf/OCRmyPDF.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about OC Rmy PDF
What is OC Rmy PDF?
OCRmyPDF adds an OCR text layer to scanned PDF files so they can be searched and copied. It produces validated PDF/A output, places text accurately under the image, keeps original image resolution, can deskew and rotate pages, optimizes file size, uses all CPU cores and recognizes more than 100 languages through Tesseract, all locally. It is an open-source project on GitHub: https://github.com/ocrmypdf/OCRmyPDF.
How do I use OC Rmy PDF?
Install it, for example apt install ocrmypdf on Debian or Ubuntu, or brew install ocrmypdf on macOS; then add an OCR layer with ocrmypdf --output-type pdfa input.pdf output.pdf; Straighten crooked scans with ocrmypdf --deskew input.pdf output.pdf. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is OC Rmy PDF for?
Anyone with scanned paperwork, books or archives who wants searchable PDFs without sending files to a cloud service.
What can I do with OC Rmy PDF?
3 use cases so far, for example: Make your scanned PDFs searchable; OCR documents in French, Chinese or mixed languages; OCR a whole archive in place, safely. Each has steps and a copy-paste agent prompt.
What do I need to run OC Rmy PDF?
Linux, Windows (or WSL), macOS or FreeBSD, or the Docker image; Ghostscript and Tesseract OCR installed; Tesseract language packs for non-English documents.
What are alternatives to OC Rmy PDF?
Other hot AI repos in Life admin: Survival LLM, Placecall, OpenInstinct, Vision State, Syncso.
Is OC Rmy PDF safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.