I'm creating an OCR-ed PDF through tesseract
:
tesseract input.tif out pdf
But I also need the hocr
and txt
files.
Recent versions of tesseract
already solved this but because it requires compiling both leptonica
and tesseract
, I'm not entirely comfortable with it.
I can use pdftotext
to extract the text file but I can't seem to find a way to extract hocr
from the PDF.