Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting PDF information

Status
Not open for further replies.

puforee

Technical User
Oct 6, 2006
741
US
I am looking for help, using VBS, to extract meta data from a PDF file. Can anyone help?
 
What type of metadata?

Do you currently have a 'manual' method of getting at this data?
 
The PDF items I need to harvest are the PDF file properties. When you right click the PDF file and select properties you see several tabs.....General, PDF, Security, and Summary. I am expressly interested in the PDF tab. On the PDF TAB there isa Title field, and author field, a subject field, and Keywords field.

I would like to pull this information with VBS and then use it in the rest of my VBS script.
Thanks,
 
I use cute pdf

Cute Pdf
Code:
Set objMyForm = CreateObject("CutePDF.Document")
objMyForm.Initialize ("DEMO-SDK-84232865-00514228")         'Initialize object by serial number of the license
If objMyForm.openFile("Pdffilename.pdf") = False Then
    ErrorMessage = objMyForm.GetLastError()
End If
msgbox objMyForm.documentInfo("Title ")
msgbox objMyForm.documentInfo("Keywords")
msgbox objMyForm.documentInfo("author")
msgbox objMyForm.documentInfo("subject")
 
What do I need the licens for? I have Acrobat Pro Extended Version 9.4.1 on my computer...it is company licensed. I am not sure how to get the informaiton about the license.

Also "CutePDF.Document" you showed??? What if I want to extract the properties for a file named 21-00-PD-001.PDF...do I have to use .Document?

Thanks,
 
weel if you have Acrobat Pro Extended ther must be similer code to use with Acrobat
look @ adoeb web site for info
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top