Adding an OCR Text Layer to a PDF Document
Sometimes we have a PDF document which is entirely composed of images with text. The text in these images cannot be selected or searched. This is often the case if you have scanned documents and merged them into a PDF. Also, quite often, we find some old research paper online as PDF, where the text looks more or less good and is rendered with fonts, but it can neither be selected nor searched, because the font shape and characters do not match. What we want in both cases is to add an invisible layer of real text over the original PDF. This text should then be search-, select-, and copy-able. The script pdfAddOcrLayer.sh can create such a layer for you.