OCRmyPDF is an open-source command-line tool that adds a searchable OCR text layer to scanned PDF files, turning them into PDF/A documents.