Skip to main content
Known Participant
Dec 15, 2020 9:20 AM UTC
Question

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

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

1 reply

Legend
Dec 15, 2020 10:01 AM UTC

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).

Translate