Use the lace
branch of my fork of HocrConverter: https://github.com/ryanfb/HocrConverter/tree/lace (make sure you git pull
to get the latest changes)
Download and compile jbig2enc in your script path. Modify pdf.py
to use 300 instead of 72 dpi.
Example run:
./lace2pdf.sh xenophon04xeno