问题
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