title: ActiveX cannot create object error when trying to convert PDF file to text file
body: <p>When I try to convert my PDF file to text file, I encounter the following error:</p>
  
  <blockquote>
    <p>Involving Acrobat Error 429 : ActiveX cannot create object</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>Private Sub CommandButton1_Click()
  
      Dim AcroXApp As Acrobat.AcroApp
      Dim AcroXAVDoc As Acrobat.AcroAVDoc
      Dim AcroXPDDoc As Acrobat.AcroPDDoc
      Dim Filename As String
      Dim jsObj As Object
      Dim NewFileName As String
  
      Filename = "C:\Users\Boominathan\Desktop\test.pdf"
  
      NewFileName = "C:\file.txt"
  
      Set AcroXApp = CreateObject("AcroExch.App")
  
      Set AcroXAVDoc = CreateObject("AcroExch.AVDoc")
  
      AcroXAVDoc.Open Filename, "Acrobat"
  
      Set AcroXPDDoc = AcroXAVDoc.GetPDDoc
  
      Set jsObj = AcroXPDDoc.GetJSObject
  
      jsObj.SaveAs NewFileName, "com.adobe.acrobat.plain-text"
  
      AcroXAVDoc.Close False
  
      AcroXApp.Hide
  
      AcroXApp.Exit
  
  End Sub
  </code></pre>
  
  <p>And the error is in the following line:</p>
  
  <pre><code>Set AcroXApp = CreateObject("AcroExch.App")
  </code></pre>
  
  <p>Can you please help me to resolve it?</p>