mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-19 20:14:53 -04:00
pdfinfo: fix FutureWarning
This commit is contained in:
@@ -539,7 +539,7 @@ def _pdf_get_pageinfo(pdf, pageno: int, infile, xmltext):
|
||||
width_pt = mediabox[2] - mediabox[0]
|
||||
height_pt = mediabox[3] - mediabox[1]
|
||||
|
||||
if xmltext:
|
||||
if xmltext is not None:
|
||||
bboxes = ghosttext.page_get_textblocks(
|
||||
fspath(infile), pageno, xmltext=xmltext, height=height_pt)
|
||||
pageinfo['bboxes'] = bboxes
|
||||
|
||||
Reference in New Issue
Block a user