pdfocr adds an OCR text layer to scanned PDF files, allowing them to be searched. It currently depends on Ruby 1.8.7 or above, and uses ocropus, cuneiform, or tesseract for performing OCR.

To use, run:

pdfocr -i input.pdf -o output.pdf

For more details, see the manpage.


pdfocr was written by Geza Kovacs

The original pdfocr is hosted at

Christian Pietsch added tesseract support for this fork of pdfocr.

Brandon Nielsen changed this fork to use Poppler in place of pdftk.