Skip navigation
Currently Being Moderated

Attempted to read or write protected memory

Jan 16, 2009 9:21 AM

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
a.Close()

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
 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)