diff --git a/pypdfocr/pypdfocr_gs.py b/pypdfocr/pypdfocr_gs.py index 5599082..837f94e 100644 --- a/pypdfocr/pypdfocr_gs.py +++ b/pypdfocr/pypdfocr_gs.py @@ -143,7 +143,7 @@ def _get_dpi(self, pdf_filename): self.greyscale = greyscale # Now, run imagemagick identify to get pdf width/height/density - cmd = 'identify -format "%%w %%x %%h %%y\n" "%s"' % pdf_filename + cmd = 'identify -format "%%w %%x %%h %%y\\n" "%s"' % pdf_filename try: out = subprocess.check_output(cmd, shell=True) results = out.splitlines()[0]