From bf22d1786cf67b754fb24b430fcd7824392dc067 Mon Sep 17 00:00:00 2001 From: Bob Lannon Date: Fri, 20 Dec 2013 13:47:54 -0500 Subject: [PATCH] added name argument to popen in getCell --- src/pdftableextract/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pdftableextract/core.py b/src/pdftableextract/core.py index 2d20d3f..af36bee 100644 --- a/src/pdftableextract/core.py +++ b/src/pdftableextract/core.py @@ -309,10 +309,10 @@ def isDiv(a, l,r,t,b) : def getCell( (i,j,u,v) ): (l,r,t,b) = ( vd[2*i+1] , vd[ 2*(i+u) ], hd[2*j+1], hd[2*(j+v)] ) - p = popen( - ("pdftotext -r %d -x %d -y %d -W %d -H %d -layout -nopgbrk -f %d -l %d %s -" - % (bitmap_resolution, l-pad, t-pad, r-l, b-t, pg, pg, quote(infile) ) ), - stdout=subprocess.PIPE, shell=True ) + p = popen("pdftotext", + "pdftotext -r %d -x %d -y %d -W %d -H %d -layout -nopgbrk -f %d -l %d %s -" % (bitmap_resolution, l-pad, t-pad, r-l, b-t, pg, pg, quote(infile)), + stdout=subprocess.PIPE, + shell=True ) ret = p.communicate()[0] if whitespace != 'raw' :