These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

submitForm

dAjOe
Registered: Feb 28 2007
Posts: 2

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.

My Product Information:
Acrobat Pro 8, Windows
leonardr
Expert
Registered: Feb 14 2006
Posts: 333
Please consult the Acrobat SDK documentation for changes in the trust model.

Leonard

Leonard Rosenthol
PDF Standards Architect
Adobe Systems