These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

PDF Navigation Using Visual Basic

Georgestef
Registered: Oct 14 2007
Posts: 24

I am a beginner. Here is what I want to do. I am writing a visual basic (VB) program to navigate through a number of PDF files. I know how to open a PDF file using VB Code. I want to go one step further and have the ability to code the VB program to navigate to a known page number within the PDF file. Any Suggestions?

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I'm assuming that you are using the Acrobat IAC interface. If you're not, then you should be. The documentation is at:

[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Click on the documentation tab and scroll down to the Interapplication Communication docs.

There are two methods. The first one is to acquire the "AVPageView" object from the AVDoc, and then use the "GoTo()" function.

The second method is to acquire the "JSO" object from the "PDDoc" and then use the regular JavaScript "doc.pageNum" property.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Georgestef
Registered: Oct 14 2007
Posts: 24
Please excuse my ignorance. What is an Acrobat|AC interface? I am currently using ACROBAT 7.0. The documentation you directed me towards seemed to be for Version 8.0. Do I need to upgrade? Can I do what I want with Version 7.0?