Skip to main content
Participant
August 22, 2023
Question

Acrobat SDK pdf to text C# converter

  • August 22, 2023
  • 1 reply
  • 259 views

Hi Acrobat Team,

Please suggest code working fine with 2017 acrobat plugin(Acrobat) but after install latest plugin is not working and not throw error. below sample C# code.   

 

AcroPDDoc pdfd = new AcroPDDoc();
pdfd.Open("abc.pdf");
Object jsObj = pdfd.GetJSObject();
Type jsType = pdfd.GetType();
object[] saveAsParam = { "xya.doc", "com.adobe.acrobat.doc", "", false, false };
try
{
jsType.InvokeMember("saveAs", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, null, jsObj, saveAsParam, CultureInfo.InvariantCulture);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

 

This topic has been closed for replies.

1 reply

Community Expert
August 22, 2023

Moved this to the appropriate Acrobat SDK forum for better help.

Also, please tell us what error do you get. It would give a hont on what is the issue here.

-Manan

-Manan