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


Get started with FormVu in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about FormVu

Start Your Free Trial