Hello!
I'm trying to enable usage rights for adobe reader by Javascript in VB.Net using Acrobat 8 Pro.
Here is my question: Is it possible to connect the JavaScript code of the submitForm-function with the JSObject in VB.Net? Here is a code example.
Dim acroApp As CAcroApp
Dim avDoc As CAcroAVDoc
Dim pdDoc As CAcroPDDoc
Dim jso As Object
acroApp = New AcroApp()
avDoc = New AcroAVDoc()
If avDoc.Open(srcFile, "TEST1") Then
jso = pdDoc.GetJSObject()
jso.submitForm({cUrl: myURL, cSubmitAs: "PDF", cUsageRights: submitFormUsageRights.RMA }); 'here is my problem
myURL is a valid url with a cgi-script behind. The submitForm-function works when it's executed by a button click in the pdf file. But I can't get it to work in VB.Net.
I hope you understand my problem.
Thank you very much in advance.
Leonard
Leonard Rosenthol
PDF Standards Architect
Adobe Systems