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
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.
Yes and yes. I have looked at the code and I have also tried instanciating the app first. My code looks basically the same as the sample code with different file names, etc. I have even tried running the sample directly from the included solution within VS2008 and I get the same error on the "open" statement.