Adds text to PDF files using the cuneiform OCR software
Ruby Groff
Latest commit 9d574a0 May 19, 2015 @gkovacs Merge pull request #22 from thomasX/master
fixed: if running with tesseract and couldn't ocr scan one page of the source-pdf , this page was removed from the destination-pdf
fixed: if running with tesseract on large pdf's we could run into OutOfDiscSpace
Failed to load latest commit information.
COPYRIGHT added manpage, README, and COPYRIGHT Apr 17, 2010
README Added support for the Tesseract OCR engine. Mar 26, 2013
pdfocr.1 updated manpage Aug 21, 2013
pdfocr.rb Update pdfocr.rb May 19, 2015


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.