I am trying to use the command line to convert a pdf to png using the export function of adobe acrobat 9. Anyone know how to do this?
A program I am writing in Java will need to run this command.
Thanks for the help.
I am trying to use the command line to convert a pdf to png using the export function of adobe acrobat 9. Anyone know how to do this?
A program I am writing in Java will need to run this command.
Thanks for the help.
Other than this paltry detail, there's no documentation on Acrobat's command line... if there's anything more to document.
I suggest you go with Ghostscript instead. They actually document their command line and are Free.
The commandline would be something like:
gs -o -q -sOutputFile=MyOutPath.png -sDevice=png16m -r300 inputPdf.pdf
I also use:
These two vastly improved the quality of my output (I use jpeg, not png) at the DPI I use. If no one's going to zoom in on them, 72 or 96 is fine... but folks will zoom in on my images, so I ramped up the dots per inch a bit.
In java, you must use command line function to open adobe acrobat then use the Robot function of Java in the awt package to emulate keystrokes to go to the export function and convert to PNG.