Refactor PdfInfo(str(filename)) -> PdfInfo(filename)

This commit is contained in:
James R. Barlow
2017-05-18 16:43:50 -07:00
parent 6a0b68298f
commit cd04ae6949
5 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -130,6 +130,6 @@ def run_ocrmypdf(input_file, output_file, *args, env=None):
@pytest.helpers.register
def first_page_dimensions(pdf):
from ocrmypdf import pageinfo
info = pageinfo.pdf_get_all_pageinfo(str(pdf))
info = pageinfo.PdfInfo(pdf)
page0 = info[0]
return (page0['width_inches'], page0['height_inches'])