Modify custom properties of pdf document using VBScript

1.4k Views Asked by At

How can I modify PDF document's custom properties (metadata) using VBScript?

Is there a way to utilize iTextSharp from VBScript? Or should I use a different tool? I have tried MS OLE File Property reader :

Option Explicit
Set oFile = CreateObject("DSOFile.OleDocumentProperties")
oFile.Open("C:\Test\312651.pdf")
oFile.CustomProperties.Add "Version", "2.0.0.0"
oFile.Save
oFile.Close

Got an error: ActiveX component cannot create an object 'DSOFile.OleDocumentProperties'

0

There are 0 best solutions below