Skip to content

Commit

Permalink
Merge pull request #12 from boblannon/fix_popen_arg
Browse files Browse the repository at this point in the history
added name argument to popen in getCell
  • Loading branch information
Christopher Lee committed Dec 30, 2013
2 parents 6a8b5e6 + bf22d17 commit 138d911
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pdftableextract/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' :
Expand Down

0 comments on commit 138d911

Please sign in to comment.