I just wish to retrieve the path of PDF document opened in Acrobat DC Pro, and save paths to my database in c#,
I able to get active pdf document in c# but unable to retrieve path of the document,
Type PDFType = Type.GetTypeFromProgID("AcroExch.App");
CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;
CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc;
CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;
object jsObj = pdDocObj.GetJSObject();
Now in jsObj I get System.__ComObject, if I am using Vb.net, then I get path of document simply as,
Dim docPath As string
docPath = jsObj.path
but, it is not allowed in C#, what should I do?