pdfinfo: replace most remaining dict-style access

This commit is contained in:
James R. Barlow
2017-05-19 16:17:36 -07:00
parent 3e73fa81bf
commit d9005a1074
5 changed files with 54 additions and 45 deletions
+1 -1
View File
@@ -132,4 +132,4 @@ def first_page_dimensions(pdf):
from ocrmypdf import pdfinfo
info = pdfinfo.PdfInfo(pdf)
page0 = info[0]
return (page0['width_inches'], page0['height_inches'])
return (page0.width_inches, page0.height_inches)