Print pdf with Acrobat in web application on Windows

  acrobat, java, pdf, spring-boot, windows

i need to print a pdf saved on my filesystem from a spring boot web application using acrobat reader installed on the server.

I Use the code

Process p = Runtime.getRuntime().exec(""C:/Program Files (x86)/Adobe/Acrobat Reader DC/Reader/AcroRd32.exe" /s /t "" + document + "" "" + printer + """);
p.waitFor();

I get no error but nothing is print. How can i solve the problem?

Thanks

Source: Windows Questions

LEAVE A COMMENT