将 pdf 文件转换为 tiff 文件的最佳方法 [英] Best way to convert pdf files to tiff files
问题描述
我有大约 1000 个 pdf 文件,我需要将它们转换为 300 dpi 的 tiff 文件.做这个的最好方式是什么?如果有可以编写脚本的 SDK 或其他东西或工具,那将是理想的.
I have around 1000 pdf filesand I need to convert them to 300 dpi tiff files. What is the best way to do this? If there is an SDK or something or a tool that can be scripted that would be ideal.
推荐答案
使用 Imagemagick,或者更好的 Ghostscript.
Use Imagemagick, or better yet, Ghostscript.
http://www.ibm.com/developerworks/library/l-graf2/#N101C2 有一个 imagemagick 的例子:
http://www.ibm.com/developerworks/library/l-graf2/#N101C2 has an example for imagemagick:
convert foo.pdf pages-%03d.tiff
http://www.asmail.be/msg0055376363.html 有一个关于 ghostscript 的例子:
http://www.asmail.be/msg0055376363.html has an example for ghostscript:
gs -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif foo.pdf -c quit
我会安装 ghostscript 并阅读 gs 的手册页以了解需要哪些确切选项并进行实验.
I would install ghostscript and read the man page for gs to see what exact options are needed and experiment.
这篇关于将 pdf 文件转换为 tiff 文件的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!