From 32706351929afcf00d4aae52ce82c79dabb6b18d Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 28 Aug 2015 04:51:36 -0700 Subject: [PATCH] ghostscript: quiet startup on rasterize --- ocrmypdf/ghostscript.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ocrmypdf/ghostscript.py b/ocrmypdf/ghostscript.py index 241ae3db..638e9a3e 100644 --- a/ocrmypdf/ghostscript.py +++ b/ocrmypdf/ghostscript.py @@ -10,7 +10,9 @@ def rasterize_pdf(input_file, output_file, xres, yres, raster_device, log): with NamedTemporaryFile(delete=True) as tmp: args_gs = [ 'gs', - '-dBATCH', '-dNOPAUSE', + '-dQUIET', + '-dBATCH', + '-dNOPAUSE', '-sDEVICE=%s' % raster_device, '-o', tmp.name, '-r{0}x{1}'.format(str(xres), str(yres)),