Hello!
I've install hocr-tools on both mac and ubuntu and get the same error. All images are jpg and the hocr files were created by tesseract.
I'm wondering if I have the wrong versions of supporting libraries installed.
Traceback (most recent call last):
File "/opt/homebrew/bin/hocr-pdf", line 143, in
export_pdf(args.imgdir, 300)
File "/opt/homebrew/bin/hocr-pdf", line 51, in export_pdf
load_invisible_font()
File "/opt/homebrew/bin/hocr-pdf", line 134, in load_invisible_font
uncompressed = bytearray(zlib.decompress(base64.decodestring(font)))
AttributeError: module 'base64' has no attribute 'decodestring'
Name: hocr-tools
Version: 1.1.1
Name: lxml
Version: 4.6.4
Name: Pillow
Version: 8.4.0
Name: reportlab
Version: 3.6.2