Skip to main content
Participant
May 23, 2016
Question

C# Adobe PDF Reader Tool - Automation Methods

  • May 23, 2016
  • 1 reply
  • 2552 views

I open a pdf file on my c# form by Adobe PDF Reader tool. I just reach some methods but not enough for me. I need to learn current pdf page number or a page number that is indicate adobe search tool result. Than I try to use these variables on my labels r textboxes.

If I look object broser, I see AcroAVPageViewClass which has GetPageNum().

Could you describe me how can I use these methods and class? Or another solution?

public virtual int GetPageNum()

    Member of Acrobat.AcroAVPageViewClass

Thanks for your helps.

This topic has been closed for replies.

1 reply

Legend
May 23, 2016

Many people have had big problems from trying to use the object browser to program Acrobat (I assume you do mean Acrobat Pro, not Acrobat Reader, since it is the Acrobat SDK not the Reader SDK). The complex connections between OLE methods and objects are described in the Acrobat SDK. Make sure you are using the SDK documentation.

Participant
May 23, 2016

I use Adobe Acrobat DC version. Furthermore my methods should be used by Reader SDK. Because they are not complex procedures. As like I want to use simple search operation with c#.

I just use Acrobat.dll and axAcroPDF1 variables as like

axAcroPDF1.LoadFile(pdfOpen.FileName);

Thanks for your answer. I should try to do another methods or another ways.