Skip to main content
Known Participant
December 15, 2020
Question

SDK can get parameter by using AcroRd32.exe 0001.pdf aaa bbb ccc

  • December 15, 2020
  • 1 reply
  • 360 views

I am using Acrobat SDK for developing *.api. When I use command line to open pdf file as follows:

AcroRd32.exe 0001.pdf aaa bbb ccc.

If *.api can get the parameter - aaa bbb ccc?

This topic has been closed for replies.

1 reply

Legend
December 15, 2020

Those are not legal parameters, they should cause an error. If they don't cause an error today, they could fail at any time.

To get a command line you can use https://docs.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinew GetCommandLineW, but not if Protected Mode is switched on (since you are no longer running in the process with the original command line).