Using,
CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;
I am able to retrieve PdDocObj, but unable to find any property/method that provides me pdf file-location.
Using,
CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;
I am able to retrieve PdDocObj, but unable to find any property/method that provides me pdf file-location.
From PDDoc you can init the JSObject (set jso = PDDoc.GetJSObject) and then use something like jso.path, which will give you the device-indepentend path of the document.
OK. Following a complete working VBS example. Good Luck, Reinhard
Info = "View the path of the active doc" &vbCR &"Acrobat must be opened with an active document"
OK = MsgBox(Info, vbQuestion+vbYesNo)
if OK = vbNo then WScript.quit
Set AcroApp = CreateObject("AcroExch.App")
Set AVDoc = AcroApp.GetActiveDoc
Set PDDoc = AVDoc.GetPDDoc
set jso = PDDoc.GetJSObject
ffn = jso.path
msgbox(ffn)