Skip to content

Commit 73fc39f

Browse files
oolivfharper
authored andcommitted
fix: 🐛 enforce page.get_cdrawings() > 1 to check if page is blank
1 parent 2c5a908 commit 73fc39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mindee/inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def check_if_document_is_empty(self):
140140
for page in src:
141141
if (
142142
len(page.get_images()) > 0
143-
or len(page.get_cdrawings()) > 0
143+
or len(page.get_cdrawings()) > 1
144144
or len(page.get_text()) > 0
145145
):
146146
return

0 commit comments

Comments
 (0)