ocrmypdf

Add searchable text layer to scanned PDF files using OCR.

brewmacoslinux
Try with needOr install directly
Source

About

Adds an OCR text layer to scanned PDF files

Commands

ocrmypdf

Examples

add text layer to scanned PDF$ ocrmypdf input.pdf output.pdf
make PDF searchable with language specified$ ocrmypdf -l eng+fra input.pdf output.pdf
process PDF and keep only OCR text layer$ ocrmypdf --redo-ocr input.pdf output.pdf
convert image to searchable PDF with OCR$ ocrmypdf image.png output.pdf
batch process multiple scanned PDFs$ ocrmypdf *.pdf --output-type pdf && for f in *.pdf; do ocrmypdf "$f" "ocr_$f"; done