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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user