Skip to main content
Andrey0121112
Participant
July 5, 2019
Question

using Acrobat.dll

  • July 5, 2019
  • 3 replies
  • 4384 views

Hello,

I would like to integrate Acrobat Reader support into my company's project, in order to be able to disassemble the pdf documents on the elements.
I downloaded the TRIAL version Acrobat Reader Pro and added Acrobat.dll to my project(.net). After I read the documentation in the Adobe SDK, I could not get XObject page. Please answer me the following questions:

  1. How can I get items from current page

//example

CAcroApp App = new AcroAppClass();

CAcroAVDoc AvDoc = new Acrobat.AcroAVDoc();

if (AvDoc.Open(PathToFile, ""))

{

     AcroAVPageView avPageView = (AcroAVPageView) AvDoc.GetAVPageView();

     for (int iPage = 0; iPage < pdDoc.GetNumPages(); iPage++)

     {            

          var pdPage = (AcroPDPage)pdDoc.AcquirePage(iPage);

          // todo "How can I get items from current page?"

     }

}

     2. Is it possible to connect to an already running process Reader? 

//example if it can work

This topic has been closed for replies.

3 replies

BarlaeDC
Community Expert
Community Expert
July 8, 2019

Hi,

pdPage.GetAnnout ( index of annot on page to get);

you probably want to call GetNumAnnots(); first to make sure there are any annots to get, and then use the value returned as your loop to go through each annot on the page.

Regards

Malcolm

lrosenth
Adobe Employee
Adobe Employee
July 5, 2019

As described in the Acrobat SDK (which I am sure you downloaded since it has all the documentation and sample code for developing with Acrobat), you will see that those methods are only provided in Acrobat Pro and not in Acrobat Reader.

Andrey0121112
Participant
July 8, 2019

I read the SDK.. But I could not get the page elements.

@Leonard_Rosenthol If I understand you correctly. There is no mechanism to connect to the Acrobat Reader version?

About Acrobat Reader PRO. The question remains open. Maybe someone will tell the method

how can i get items from page?

Thanks for the links to sdk, but it has already been read)

Bernd Alheit
Community Expert
Community Expert
July 8, 2019

You can get the annotations of the page with the method GetAnnot.

Info: There is no product with the name Acrobat Reader PRO!

Bernd Alheit
Community Expert
Community Expert
July 5, 2019

There is no product with the name Acrobat Reader Pro. You need Adobe Acrobat Standard or Pro.

Andrey0121112
Participant
July 5, 2019

I agree with you. But my question about using ФBut my question is about using Acrobat.dll

[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]

[Moved from user to programming forum... Mod]

Bernd Alheit
Community Expert
Community Expert
July 5, 2019

Look at the documentation:

Acrobat DC SDK Documentation