Using Adobe Acrobat 9 on the command line for hidden from pdf to png using the export function

I am trying to use the command line to convert pdf to png using the adobe acrobat 9 export function. Does anyone know how to do this?

The program I am writing in Java will need to execute this command.

Thanks for the help.

+3
source share
2 answers

In java, you must use the command line function to open adobe acrobat, and then use the Robot Java function in the awt package to emulate keystrokes to go to the export and convert to PNG functions.

+1
source

, Acrobat... - .

Ghostscript. .

:

gs -o -q -sOutputFile = MyOutPath.png -sDevice = png16m -r300 inputPdf.pdf

  • -o ( )
  • -q ( )
  • -sOutputFile
  • -sDevice = png16m 24- rgb. pngalpha, png8, pngmono, png256.
  • -r300 300 dpi.

:

  • -dTextAlphaBits = 4
  • -dGraphicsAlphaBits = 4, .

( jpeg, png) DPI. , 72 96 ... , .

+3

Source: https://habr.com/ru/post/1788332/


All Articles