Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
COM and the AcroExch.app are only for Acrobat Pro – not Reader.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.