You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
227 B
8 lines
227 B
#!venv/bin python3
|
|
import pdftotree
|
|
|
|
def hocr_result():
|
|
hocr_result = pdftotree.parse("static/pdf/downloaded.pdf")
|
|
with open('static/hocr/downloaded.hocr', 'w') as f:
|
|
f.write(hocr_result)
|
|
return hocr_result
|
|
|