• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

AcroExch.App with Adobe Reader

Community Beginner ,
Sep 14, 2010 Sep 14, 2010

Copy link to clipboard

Copied

If a computer only has Adobe Reader installed, can an application running on that computer interact with a pdf document via OLE?  In particular, can an application on that computer use AcroExch.App and AcroExch.AVDoc objects?

Example code:

#import "acrobat.tlb" rename_namespace("ACROBAT"), auto_rename

ACROBAT::CAcroAppPtr app("AcroExch.App");

ACROBAT::CAcroAVDocPtr avDoc("AcroExch.AVDoc");
ACROBAT::CAcroPDDocPtr pdDoc;

avDoc->Open(TEXT("c:\\example.pdf"), TEXT(""));

pdDoc = avDoc->GetPDDoc();
pdDoc->OpenAVDoc("Title");

Currently creating app gives error: Invalid class string

Thanks!

TOPICS
Acrobat SDK and JavaScript

Views

103.4K

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
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 14, 2010 Sep 14, 2010

> If a computer only has Adobe Reader installed, can an application  running on that computer interact with a pdf document via OLE?

No,

> In  particular, can an application on that computer use AcroExch.App and  AcroExch.AVDoc objects?

No.

Votes

Translate

Translate
Community Expert ,
Sep 14, 2010 Sep 14, 2010

Copy link to clipboard

Copied

> If a computer only has Adobe Reader installed, can an application  running on that computer interact with a pdf document via OLE?

No,

> In  particular, can an application on that computer use AcroExch.App and  AcroExch.AVDoc objects?

No.

Votes

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
community guidelines
Adobe Employee ,
Sep 14, 2010 Sep 14, 2010

Copy link to clipboard

Copied

No, it cannot. Reader doesn't support COM/OLE automation.

Votes

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
community guidelines
Community Beginner ,
Sep 14, 2010 Sep 14, 2010

Copy link to clipboard

Copied

Thank you for the very fast response.  One follow-up question:

Assume I buy Adobe Acrobat to develop this application and use OLE to interact with pdf documents in the application.

Will my clients need to also buy Adobe Acrobat for the application to work on their computers?  Or can I package it with my application behind the scenes?

Thanks again!

Votes

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
community guidelines
Adobe Employee ,
Sep 14, 2010 Sep 14, 2010

Copy link to clipboard

Copied

Yes, your clients would need to purchase Acrobat for your application to work. It needs to be installed on every computer on which your software would operate.

And remember that Acrobat can NOT be automated to do work for someone not licensed to use it....

Votes

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
community guidelines
Explorer ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

Related to this post, lets say I get the approval from Adobe (RIKLA stuff), will these classes work for Reader plugin?

i.e AcroAppClass and CAcroPDDoc

If not, what are the Reader plugin APIs available in SDK that does text extraction and highlight functionality in Reader (which is my only 2 requirement now).

Votes

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
community guidelines
Adobe Employee ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

No, because they simply do not exist in Reader. They only exist in Acrobat.

But if you are writing a plugin, why do you need them? There are much better APIs (PDWordFinder, etc.) available to you via plugins...

Votes

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
community guidelines
Explorer ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

What I was trying is to get hold of ActiveDoc once I pass on the control from Plugin code to my C# code, so that I can extract text and do the highlight stuff with the help of AcroAppClass  and CAcroPDDoc.

Ok. PDWordFinder will solve one of my problem as it will work for Reader. Now I can extract text from a Reader document and send it to my C# Form from plugin.

Now, from that Windows Form code, how can I highlight a particular word back in the PDF document. Is there a Reader supported API (HiliteEntry?)

Votes

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
community guidelines
Adobe Employee ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

Yeah, that won't work with Reader - sorry! You will need to do the extraction in the plugin and then send that extracted text to the C# code.

You will need to send info back to the plugin to tell it what you want hilited and then it can do it...

Votes

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
community guidelines
Explorer ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

Thats great,atleast I have a way to talk back to Reader document from C#.

Can you please point me some SDK sample code which does this handshake? Meaning, invoking the plugin method from outside plugin code (in my case from C# Winform to plugin code to highlite a word).

Votes

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
community guidelines
Adobe Employee ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

Sorry, no samples of this type of thing - but that's because it's not Acrobat/Reader centric. Do whatever you want to communicate...

Votes

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
community guidelines
Explorer ,
Dec 07, 2010 Dec 07, 2010

Copy link to clipboard

Copied

Thanks!

But if there is a sample which atleast invokes a plugin method from outside, that will really help me to proceed further.

Or any direction of this sort will also helpful.

Votes

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
community guidelines
Explorer ,
Dec 09, 2010 Dec 09, 2010

Copy link to clipboard

Copied

Can any one answer my previous question?

I am searching SDK documentation and I found something called HFT. Is that the solution for my requirement, i.e invoking a plugin method from outside?

Please let me know.

Votes

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
community guidelines
Explorer ,
Jan 11, 2011 Jan 11, 2011

Copy link to clipboard

Copied

Replying to my own questions above....found a DDE (very old IAC technique and not usually recommended tough ) way to talk to Acrobat/Reader instance (called as DDE Server). There is a sample project which demonstrates DDE and it is in C++.

As I need to talk from my Winform, I am gonna use Ndde (open source) to talk back to Acrobat/Reader instance.

It would be more helpful if some sample code/project is available in SDK to demonstrate IAC via COM/OLE as DDE is a very old technique.

-AT

Votes

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
community guidelines
Adobe Employee ,
Jan 11, 2011 Jan 11, 2011

Copy link to clipboard

Copied

Adobe Reader doesn't support COM/OLE - only DDE.

Votes

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
community guidelines
Explorer ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Irosenth, this is kinda contradicting. I remember you were saying "If Adobe approves your Reader plugin, then it can do what ever". Meaning COM/OLE/Named pipes. I thought COM/OLE is available for Reader, but your above reply says it strictly supports only DDE (which is gud for me as I hav explained above, am using DDE to send messages back to Reader instance to invoke the Highlite plugin function ).

Please can you clarify why COM/OLE is not available for Reader and why only old technique, DDE is available for Reader?

Votes

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
community guidelines
Adobe Employee ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Sorry - OK for you to do from your plugin. (I was referring to built-in support)

Votes

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
community guidelines
Explorer ,
Jan 12, 2011 Jan 12, 2011

Copy link to clipboard

Copied

Thats convincing to me and good to know that Reader will support IAC via COM apart from DDE. I will try to create a COM component and expose the Highlite API, add reference to my C# Winform and invoke it from there.

Votes

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
community guidelines
New Here ,
Jan 03, 2012 Jan 03, 2012

Copy link to clipboard

Copied

Hi Athirukk

from above posts, it appear you have worked good deal to edit pdf docs without using SDK ( with the help of plugins/DDE).

can you please help me what was the result . as i have the similar issue (ActiveX is not able to create objects for data points i have in the code @  http://forums.adobe.com/message/4109842 ).

apprciate any guidance.

regards

Sidharth

Votes

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
community guidelines
Explorer ,
Jan 03, 2012 Jan 03, 2012

Copy link to clipboard

Copied

Sid - What I had achieved using Ndde (opensource) is to make a connection from .Net code (Winform) to C++ code (Adobe Plugin). All my code does is to invoke C++ code from .Net to retrieve (read only) the contents/text of a PDF document and I did not do any EDITING.

What are you trying to achieve?

-AT

Votes

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
community guidelines
New Here ,
Jan 04, 2012 Jan 04, 2012

Copy link to clipboard

Copied

athirukk- i need to write reference text on pdf docs..with acrobat this is possible as confirmed by Irosenth....however was thinking if it is possible without spending any money...

i will look at ndde....however any direction u want me to point ..

Votes

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
community guidelines
Community Expert ,
Jan 04, 2012 Jan 04, 2012

Copy link to clipboard

Copied

Without spending money you can't create plug-ins for Adobe Reader.

Votes

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
community guidelines
Explorer ,
Jan 04, 2012 Jan 04, 2012

Copy link to clipboard

Copied

As Bernd mentioned, you have to get RIKLA from Adobe to make your plugin work for Reader.

Votes

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
community guidelines
New Here ,
May 21, 2015 May 21, 2015

Copy link to clipboard

Copied

Do you mean those 500+ pages of confused and useless official documentation or the 40+ sites/blogs/forums I visited before asking?

Couldn't adobe just clearly state in the two sdks download pages who can use them and how to use them? I think I downloaded 100 MB of useless stuff, maybe I just need to know how to access acrord32.dll functions from VBA... if just this was explained somewhere...

Votes

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
community guidelines
Community Expert ,
May 21, 2015 May 21, 2015

Copy link to clipboard

Copied

The documentation is part of the Acrobat SDK.

Votes

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
community guidelines