我正在运行Adobe Acrobat Pro DC流程实例的流程句柄 ,如何使用C#中的流程句柄获取AcroExch.App对象。
Please note that, Unfortunately , Acrobat DC SDK, works only with either Adobe Acrobat Pro/Standard version. Doesn't support Acrobat Reader DC.
So, I managed to retrieve reference pointing running instance of Acrobat Pro DC using following piece of code,
Type PDFType = Type.GetTypeFromProgID("AcroExch.App");
CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;
AcroAppObj.Show();
CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc;
CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;
string fileName = PdDocObj.GetFileName();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.