I'm trying to use tesseract and hocr2pdf on a series of .tif files in a folder.
ls *.tif | xargs -I% tesseract % % -l fra hocr produces the html files which have the same file name but with .html added. But
ls *.tif |xargs -I% hocr2pdf -i % -n -o %.pdf < %.html is not working. I get the error message
%.html not found. It seems xargs is having problems with the
< in the hocr2pdf command.
How do I circumvent this?