Skip to main content
lorenzol89599428
Participant
January 15, 2019
Answered

CAcroApp with Reader

  • January 15, 2019
  • 1 reply
  • 2189 views

Hi,

according to the sdk documentation, the class CAcroApp can be used to control the application via COM.

However, any function call seems to have zero effect.

I put these lines into the BasicIacVc example provided with the sdk

    acroApp = new CAcroApp;

    acroApp->CreateDispatch("AcroExch.App", &e);

    if (!acroApp) {

        AfxMessageBox("Creating Acrobat IAC acroApp failed in BasicIacVc sample.");

        return FALSE;

    }

    acroApp->Exit();

Could you give me some advice?

My goal is to the get the current preferences like the Page Display mode.

Thanks

This topic has been closed for replies.
Correct answer Test Screen Name

Certain DDE methods work. The documentation says which. Nothing to do what you want. The job of the Acrobat SDK is essentially to sell Acrobat.

1 reply

lrosenth
Adobe Employee
Adobe Employee
January 15, 2019

COM and the AcroExch.app are only for Acrobat Pro – not Reader.

lorenzol89599428
Participant
January 16, 2019

Thanks for the reply. However, in the documentation it´s written

IAC support allows programs to control Acrobat or Acrobat Reader in much the same way a user would. You can also use IAC support to render a PDF file into an external application window instead of the Acrobat window. The IAC methods and events serve as wrappers for some of the core API calls in the SDK.

So, is there a subset of IAC that can be used with Reader? Or is there any another way to get the current user preference in a programmatically way?

Test Screen NameCorrect answer
Legend
January 16, 2019

Certain DDE methods work. The documentation says which. Nothing to do what you want. The job of the Acrobat SDK is essentially to sell Acrobat.