Link
Skip to main content

Submit a completed form as a PDF

For most scenarios, it is recommended to submit via the FormVuAPI. However, in the event you have disabled this API, or the PDF Form itself uses an action targeting this API, FormVu’s submitForm implementation is used.

It can also be accessed via JavaScript using idrform.submitForm(url).
 

This implementation does the following:

  1. Saves the current filled out form as a PDF
  2. Encodes the PDF into a Base64 encoded string
  3. Submits the Base64 encoded string as a POST submission using a “pdfdata” key

For example, a raw submission would look similar to this:

pdfdata=VGhpcyBpcyBhbiBleGFtcGxlIEJhc2U2NCBzdHJpbmcsIG5vdCBhbiBleGFtcGxlIFBERiB0aGF0IHlvdSB3b3VsZCBleHBlY3QgdG8gc2Vl

 

To handle these submissions, the receiving endpoint would be expected to:

  1. Receive the POST submission
  2. Access the “pdfdata” key
  3. Decode the Base64 stream
  4. Save the output as a PDF file

Consider using the submitUrl setting, to preset the submission URL endpoint


What's included in your FormVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about FormVu.
  • An exceptional PDF Form to HTML converter that took over 20 years to build!

Learn more about FormVu

Start Your Free Trial