当然有某种抽象可以实现这一点吗?
这基本上就是命令
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方式