擅长:python、mysql、java
<p>对于windows,安装ghostscript并在环境变量中设置路径并执行以下命令。在</p>
<p>command=[“gswin32c”,
“-q”,<br/>
“-g%dx%d”%size,<br/>
“-dNOPAUSE-dSAFER”,<br/>
“-sDEVICE=ppmraw”,<br/>
“-sOutputFile=%s”%文件
]在</p>
<p>命令=字符串.连接(命令)</p>
<p>gs=os.popen公司(命令“w”)</p>