ocrmypdfocrmypdf
ADDEDOCRmyPDF is a command-line tool that adds a searchable OCR text layer to scanned PDF files, producing validated PDF/A output. It uses Tesseract for recognition in over 100 languages, supports deskewing and rotation correction, and runs on Linux, macOS, Windows and FreeBSD.