Quantcast
Channel: Adobe Community : All Content - Acrobat SDK
Viewing all articles
Browse latest Browse all 2571

How to count pages with Adobe Reader XI

$
0
0

Hello, experts!

My task - to count the pages in PDF file.

I have a Adobe Reader XI, Windows 8 x64

 

I make a scripts inside my program on VBS (Visual Basic Script). It is not problem to integrate my program with other application using ActiveX, COM, OLE etc.

This time I already observed information on this forum about how to CreateObject() as Adobe Reader. Now I write this code:

 

 

 

  1. Set gApp = CreateObject("AcroPDF.PDF.1") 
  2. gApp.LoadFile("...path/File.pdf") 

But when I run app anything doesn't work. In Application Manager of Windows the Adobe Reader app doesn't appear.

For example this code does work:

 

 

  1. msgbox gApp.GetVersions 

 

Also I can find AcroPDF.PDF.1 in list on ActiveX controls inside the Windows. Maybe to solve my task I should use Adobe Acrobat with CreateObject("AcroExch.AVDoc") but I'd like to try free version.

I found this Adobe PDF Library SDK | Adobe Developer Connection

Besides the technologies provided by the Acrobat SDK, you can also use the PDF Library (PDFL) to develop applications that create and manipulate PDF documents but do not interact with Acrobat.

1. So what I should to install at first to use just Adobe PDF Library SDK?

2. Maybe I should install Acrobat SDK, but it just for Acrobat, not for Reader...

3. And how I can count pages in PDF from my external app?

 

Thanks to all!


Viewing all articles
Browse latest Browse all 2571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>