Commit 9c48ea4a authored by Merlijn Wajer's avatar Merlijn Wajer
Browse files

pdf-to-hocr: rename estimated_dpi to estimated_ppi

parent 1c534b1c
......@@ -281,7 +281,7 @@ def pdf_page_to_hocr_page(page, page_metadata, pageno=None):
kv['image'] = 'todo://todo' # TODO: some image path?
#kv['image'] = 'https://archive.org/todo' # TODO: some image path?
dpi = int(page_metadata['estimated_dpi'])
dpi = int(page_metadata['estimated_ppi'])
scaler = lambda x: int(x * page_metadata['estimated_scale'])
kv['scan_res'] = '%d %d' % (dpi, dpi)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment