The pdf file generated using hocr-pdf has Hebrew text printed in the opposite direction.
Steps I followed:
- I used Google cloud vision to get the OCR
- Used gcv2hocr to generate hocr.
- Used
hocr-pdf --savefile output.pdf actual-file.jpg to generate pdf file.
The pdf file has Hebrew text inserted in it but in the reverse order.
Actual image:

This is how my hocr file looks:

Text in pdf file: (I have set text visibility mode to 0 so that the inserted text is visible)

Hebrew is a right to left language so not sure if I have to pass any language or direction parameters to get this right.