ocrmypdf

Add OCR text layer to scanned PDF files for searchability

brewmacoslinux
Try with needOr install directly
Source

About

Adds an OCR text layer to scanned PDF files

Commands

ocrmypdf

Examples

Add OCR text layer to a PDF using Tesseract$ ocrmypdf input.pdf output.pdf
Process PDF with specific language and skip existing text$ ocrmypdf -l eng --skip-text input.pdf output.pdf
Compress and OCR a PDF with deskewing$ ocrmypdf --deskew --compress-system-fonts input.pdf output.pdf