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.
9 lines
227 B
9 lines
227 B
2 years ago
|
#!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
|