import ghostscript
import sys, subprocess,os
output = subprocess.Popen(['gs', '-dSAFER', '-dNOPAUSE', '-dBATCH', '-sDEVICE=tiffg4', '-g6120x7920 ','-r720x720','-sOutputFile=C:\Python25\pdfmining\page_%03d.tif' 'C:\Python25\pdfmining\ae.pdf'])
WindowsError: [Error 2] The system cannot find the file specified, with a call to line 3 in the program above. I know i am missing something really simple here, related to Popen i believe, anyone see what is causing this and why I am getting can't find file?
ghostscript
for? You don't use it in your example. – ThomasH Jun 13 '11 at 13:20import
you get objects and functions into your program that you can use, likeos.mkdir
orsys.path
. But you never useghostscript.<something>
. The'gs'
in your call to subprocess.Popen is an external program that has nothing to do with Python. – ThomasH Jun 13 '11 at 22:54