将pdf文件转换为tiff文件的最佳方式

将pdf文件转换为tiff文件的最佳方式

问题描述:

我有大约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.