使用gs转换为多个png文件

・1 分钟阅读

将pdf转换为多个png文件

gs -sDEVICE=pngalpha -sOutputFile=<filename>%d.png -r<resolution> <pdffile>
示例输出
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 3.
Page 1
>>showpage, press <return> to continue<<
Page 2
>>showpage, press <return> to continue<<
Page 3
>>showpage, press <return> to continue<<
Hujiuxiang profile image