小编R T*_*sch的帖子

什么是python 2.3 for windows执行像ghostscript这样的程序在路径中有多个参数和空格的最佳方法?

当然有某种抽象可以实现这一点吗?

这基本上就是命令

cmd = self._ghostscriptPath + 'gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 
      -r196X204 -sPAPERSIZE=a4 -sOutputFile="' + tifDest + " " + pdfSource + '"'

os.popen(cmd)
Run Code Online (Sandbox Code Playgroud)

这种方式看起来真的很脏,必须有一些pythonic方式

python windows ghostscript

3
推荐指数
1
解决办法
3353
查看次数

标签 统计

ghostscript ×1

python ×1

windows ×1