12-23-2009, 01:46 PM
If you have Adobe Acrobat installed on your machine, you can use this to manipulate your pdf files.
like the below examle using AcroExch object to get the number of pages in the pdf file
like the below examle using AcroExch object to get the number of pages in the pdf file
Code:
Set Acroapp = CreateObject("AcroExch.App")
Set pdf = CreateObject("AcroExch.PDDoc")
pdf.Open <<PdfFile>>,"temp"
Set pdfFile = pdf.GetPDDoc
GetPDFPageCount = pdfFile.GetNumPages
Set pdffile = nothing