4 Replies Latest reply: Jan 16, 2009 12:33 PM by (Matt_Spinks) RSS

    Attempted to read or write protected memory

      I am attempting to convert a PDF document into a jpg image. I have the code in place and understand how it works:

      Dim a As New Acrobat.AcroPDDoc()
      Dim jso As Object
      If a.Open(C:\doc.pdf") Then
      jso = a.GetJSObject
      jso.SaveAs("c:\test.jpg", "com.adobe.acrobat.jpeg")
      End If

      But I am getting a memory error when it tries to execute the "a.Open" statement. The memory error is "Attempted to read or write protected memory..." I cannot find a solution for this anywhere. Can anyone help? Thanks.

      Matt Spinks