Question
c sharp: DLL for IJSMessageHandler Interface
Task: C Sharp: Coverting PDF to MS Word
Capture return messages Acrobat translation function.
I downloaded Acrobat_DC_SDK_Windows_2021_v3 refereced Interop.Acrobal.dll
IJSMessageHandler is not found.
Please provide link to download the required DLL.
MyJSMessageHandler: IJSMessageHandler <***************
{
public void OnMessage( string msg )
{
MessageBox.Show(msg);
}
}
AcroPDDoc pdfDoc = new AcroPDDoc();
pdfDoc.Open("sourcPDF.pdf");
Object jsObj = pdfDoc.GetJSObject();
jsObj.MessageHandler = handler; <*******************
type = jsObj.GetType();
object[] saveAsParam = { "targetWord.docx", "com.adobe.acrobat.docx" };
type.InvokeMember(
"saveAs",
BindingFlags.InvokeMethod |
BindingFlags.Public |
BindingFlags.Instance,
null, jsObj, saveAsParam);
Thanks for your help.
