' Copyright (c) 2021 ActivePDF, Inc. ' ActivePDF Toolkit 2018 ' Example generated 01/22/21 Dim FSO, strPath, strAuthor, strTitle, _ strSubject, strKeywords, strProducer, strCreator, _ strCreateDate, strModDate ' Get current path Set FSO = CreateObject("Scripting.FileSystemObject") strPath = FSO.GetFile(Wscript.ScriptFullName).ParentFolder & "\" Set FSO = Nothing ' Instantiate Object Set oTK = CreateObject("APToolkit.Object") ' Specify the file to retrieve information about oTK.GetPDFInfo strPath & "PDF.pdf" ' Retrieve various information about the PDF strAuthor = oTK.Author strTitle = oTK.Title strSubject = oTK.Subject strKeywords = oTK.Keywords strProducer = oTK.Producer strCreator = oTK.Creator strCreateDate = oTK.CreateDate strModDate = oTK.ModDate ' Close the PDF as it's no longer needed oTK.CloseInputFile ' Release Object Set oTK = Nothing ' Process Complete Wscript.Echo("Done!")