diff --git a/__pycache__/app.cpython-37.pyc b/__pycache__/app.cpython-37.pyc index d2a2400..351ce84 100644 Binary files a/__pycache__/app.cpython-37.pyc and b/__pycache__/app.cpython-37.pyc differ diff --git a/app.py b/app.py index 8bd0500..3922bca 100644 --- a/app.py +++ b/app.py @@ -40,7 +40,8 @@ def transform(): print(content["hocr"]) urllib.request.urlretrieve(content["pdf"], "static/pdf/input.pdf") - hocr = subprocess.call("pdftotree static/pdf/input.pdf -o static/hocr/gynaikoktonia.hocr", shell=True) + # the outcome of this hocr doesnt write well on the pdf, its structure doesn't fit + # hocr = subprocess.call("pdftotree static/pdf/input.pdf -o static/hocr/gynaikoktonia.hocr", shell=True) result = subprocess.call("python3 hocrtransformpdf.py -i static/images/blank.png static/hocr/gynaikoktonia.hocr static/pdf/result.pdf", shell=True) diff --git a/templates/results.html b/templates/results.html index 84ae4c9..46c4fa2 100644 --- a/templates/results.html +++ b/templates/results.html @@ -18,8 +18,8 @@ - - + +