Skip to main content
May 8, 2015 12:21 PM UTC
Question

Acrobat Reader DC Command line Options

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 is closed to new replies. Start a new post to keep the conversation going.

11 replies

Participant
Nov 12, 2015 9:57 PM UTC

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.



Translate
Participant
Nov 16, 2022 1:20 PM UTC

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

Translate
Bernd Alheit
Community Expert
Community Expert
Nov 16, 2022 5:25 PM UTC

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

Translate
Participant
Jun 24, 2015 6:07 PM UTC

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.

Translate
lrosenth
Adobe Employee
Adobe Employee
Jun 24, 2015 6:40 PM UTC

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.

Translate
Participant
Oct 26, 2017 4:21 PM UTC

Boo

Translate
lrosenth
Adobe Employee
Adobe Employee
May 8, 2015 1:15 PM UTC

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

Translate