Submit pdf form fields to a HTTP POST request

后端 未结 1 1154
别那么骄傲
别那么骄傲 2020-12-01 09:40

I\'ve made a pdf form in Adobe Acrobat. Now I want to make a button that submits the form to a HTTP POST request. I have searched for about 4 hours, but I have not found an

相关标签:
1条回答
  • 2020-12-01 10:38
    doc.submitForm(url, false);
    

    or

    doc.submitForm( url, null, null, null, null, null, null, null, null, null
                    null, null, null, null, null, "HTML" );
    

    submitForm actually takes 23 different parameters, the above is only using 16 of them. And if I miscounted, I'm trying to use the cSubmitAs parameter.

    This from the JavaScript API reference, which can be found at... lets see... right here. Enjoy.

    PS: "this" is almost universally the document in acrobat events. event.target might be a field or something, but "this" is going to be the document.

    PPS: Things like bEmpty, aFields, and various other parameters don't work when bFDF = false.

    0 讨论(0)
提交回复
热议问题