Fix --skip-big when there are no images in pdf (#152)

* fixed skip-big when there are no images in pdf

* added only_text pdf

* updated only_text pdf

* Delete only_text.pdf
This commit is contained in:
Tom
2017-04-18 15:19:24 -07:00
committed by jbarlow83
parent 58d1042147
commit 345256ee99
+1 -1
View File
@@ -247,7 +247,7 @@ def is_ocr_required(pageinfo, log, options):
"skipping all processing on this page"))
ocr_required = False
if ocr_required and options.skip_big:
if ocr_required and options.skip_big and pageinfo['images']:
pixel_count = pageinfo['width_pixels'] * pageinfo['height_pixels']
if pixel_count > (options.skip_big * 1000000):
ocr_required = False