-
Notifications
You must be signed in to change notification settings - Fork 115
Description
Hi, getting the following when trying to run on HS:
Traceback (most recent call last):
File "/usr/local/bin/pypdfocr", line 9, in
load_entry_point('pypdfocr==0.9.1', 'console_scripts', 'pypdfocr')()
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr.py", line 492, in main
script.go(sys.argv[1:])
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr.py", line 474, in go
self._convert_and_file_email(self.pdf_filename)
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr.py", line 480, in _convert_and_file_email
ocr_pdffilename = self.run_conversion(pdf_filename)
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr.py", line 363, in run_conversion
ocr_pdf_filename = self.pdf.overlay_hocr_pages(img_dpi, hocr_filenames, pdf_filename)
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr_pdf.py", line 145, in overlay_hocr_pages
text_pdf_filename = self.overlay_hocr_page(dpi, hocr_filename, img_filename)
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr_pdf.py", line 245, in overlay_hocr_page
self.add_text_layer(pdf,hocr_basename,pg_num,height,dpi)
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr_pdf.py", line 349, in add_text_layer
para.drawOn(pdf, x72/dpi, height - y72/dpi)
File "/Library/Python/2.7/site-packages/reportlab/platypus/flowables.py", line 113, in drawOn
self._drawOn(canvas)
File "/Library/Python/2.7/site-packages/reportlab/platypus/flowables.py", line 94, in _drawOn
self.draw()#this is the bit you overload
File "/Library/Python/2.7/site-packages/pypdfocr/pypdfocr_pdf.py", line 72, in draw
Paragraph.draw(self)
File "/Library/Python/2.7/site-packages/reportlab/platypus/paragraph.py", line 1717, in draw
self.drawPara(self.debug)
File "/Library/Python/2.7/site-packages/reportlab/platypus/paragraph.py", line 2093, in drawPara
blPara = self.blPara
Have followed all instructions to install deps using brew etc....