Print PDF as image from command line? [closed]

允我心安 提交于 2019-12-24 00:12:58

问题


Is it possible to print a PDF as image using Acrobat Reader through command line options?

Or this feature is only available through the GUI of Acrobat?


回答1:


Unfortunately for you, the answer is "No!". Printing PDF pages as an image is only available through the GUI in Acrobat Reader.

To see a list with all available options, run this:

acroread -help

To see an explanation for all the available options, run this:

man acroread

(I assume you are using acroread on Linux or Unix. Because on Windows, you'd have even less CLI options for it... and some incomplete documentation of which is here.)




回答2:


Note that Ghostscript can convert PDF's to image and you can use this from command line (useful for scripting).

For instance, on unix to convert a PDF to JPEG pages at 90 dpi, use:

gs -r90 -sDEVICE=jpeg -o out-%d.jpg in.pdf

will create individual pages as out-1.jpg, out-2.jpg, etc.



来源:https://stackoverflow.com/questions/6504036/print-pdf-as-image-from-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!