CAcroApp with Reader

New Here ,
Jan 15, 2019

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

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

355

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CAcroApp with Reader

New Here ,
Jan 15, 2019

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

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

356

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 15, 2019 0
Adobe Employee ,
Jan 15, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 15, 2019 0
New Here ,
Jan 16, 2019

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 16, 2019 0
Most Valuable Participant ,
Jan 16, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 16, 2019 1