Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF files
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00790403
Message ID:
00790445
Views:
15
>Hello everybody,
>
>I have got a list of PDF files. I want to make a program through which the files will be seleted 1 by 1 and their total pages would be counted to a database.
>
>Any ideas ?
>
>Thanks.

This code requires the full version of Acrobat to work:
loPDDoc = CREATEOBJECT("AcroExch.PDDoc")
* Open the PDF file
      
loPDDoc.Open("C:\SomeDir\SomePDF.PDF")
lnPageCount = loPDDoc.GetNumPages - 1
loPDDoc.Close()
In your case, you'd probably just put this into some sort of loop, and add the results of lnPageCount to another variable.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform