Skip to main content
May 8, 2015
Question

Acrobat Reader DC Command line Options

  • May 8, 2015
  • 3 replies
  • 118450 views

Hi to all,

I need to print PDF file directly from command line; in Acrobat Reade XI I have used /h /t switches, but now it is wrong.

Anyone does know the new options for Reader DC?

My OS is Windows 7 32 bit with IE 11

thanks

This topic has been closed for replies.

3 replies

Participant
November 12, 2015

I just got mine working. I used the format is as follows:

Application path in quotes, followed by filepath in NO quotes, followed by printer name in quotes.

"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /t  file.pdf "my printer-name"


no "cmd /c" preceding it and I did not include the printer driver or port at the end of the command.


Pay special attention and make sure you are using the correct syntax. I noticed that you had two slashes between Reader and AcroRd32. Probably a typo.



Participant
November 16, 2022

I want to open a PDF from inside EXCEL and print it. I do not need to open Acrobat and see the .pdf. Just print it.

The document is on the server.

The following code opens Abobe but says cannot find file.

What am I doing wrong? Any ideas?

 

 

Sub CommandButton1_Click()
Dim Filename As String
Filename = "P:\06. Operations\07. NWP\TopSheets\221360373-70 NWP NamePlate.pdf"

Shell "C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe /p /h" & "P:\06. Operations\07. NWP\TopSheets\221852697-10 NWP NamePlate.pdf"


End Sub

Bernd Alheit
Community Expert
Community Expert
November 16, 2022

May be that there is no space between /h and P:

Participant
June 24, 2015

I can print from the command line with

cmd /c "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\\AcroRd32.exe" /n /s /h /t  file.pdf "my printer-name"

as per http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pdf

I get an error dialog each time I do this:

   There was an error opening this document. Access denied

but the file still prints. Reader DC does not exit, however, so I have to close it. So this won't work in a truly batch or headless environment.

lrosenth
Adobe Employee
Adobe Employee
June 24, 2015

Most important – have you read the Acrobat Reader EULA to ensure that your use is compliant? Many batch and headless operations are not compliant with the EULA.

Participant
October 26, 2017

Boo

lrosenth
Adobe Employee
Adobe Employee
May 8, 2015

AFAIK, nothing has changed in this regard. What are you seeing (or not seeing) in how it differs?