DLL / COM Products
This is a fully functional DLL that can be incorporated in to virtually any Windows Program. We have provided some sample
source code to show how you could use this DLL in your program
Add a reference to the DLL in the Project
Dim PageCountObj As New SC.PDFPageCountDllv1
Now, create a sub or function to get the page count, (the following is a sample you could use):
Public Function GetPages(UseFileName as String) As Long
The 'UseFileName' is the variable that contains the FULL path to the PDF file.
To call the function and get the number of pages in the PDF file, you could use the following:
msgbox("Number of Pages: " & GetPages("c:\temp\testpdf.pdf"))
<cfset filename = "<FULL PATH AND FILENAME of a valid PDF FILE>">
Copy and Paste the following source code in to a test.asp page on your web server:
return status 0 means filename not found
filename = "<FULL PATH AND FILENAME of a valid PDF FILE>"
pages = Obj.PDF_PageCount(cstr(filename))
Set Obj = Nothing