When filling in PDF forms, individuals can often input information in the incorrect format due to the manual nature of completing the form. This can spell problems when businesses or organizations then need to enter this information into databases that only accept certain formats.

Zingtree provides a streamlined way to fill in forms in PDF files to help alleviate this pain point. Using Zingtree’s data gathering capabilities, as well as decision tree branching to get the desired data in the most efficient way, users or customers can be guided towards completing forms accurately. This is a powerful tool for a number of organizations, such as for government agencies requiring documents in a specific format, or insurance companies collecting accurate information on policy holders.

Here is a step-by-step guide to demonstrate how Zingtree can be used to ensure that your PDF form is completed efficiently and accurately.

Set Up

Zingtree has built a special webhook to enable this handy use of the platform. Here’s how to set this up:

  1. Upload your PDF form file to a server. We’ll need the URL of this file.
  2. Create a decision tree that gathers the information to be merged into the PDF form. The variable names you use in Zingtree must match the variable names in the PDF form file.
  3. Install the Zingtree PDF form filler webhook. Go to Account, My Apps, then click Webhooks, and enter the following into the webhook URL.
    https://zingtree.com/apps/webhook/lib/pdf-form.php

    Like this:

  4. In your decision tree, add this webhook to a node after you have gathered all of your data. Like this:
    The message data passes along a parameter for the URL Encoded URL of the PDF file (from step 1). Like this:

    &pdf_form={{URL Encoded URL of Form File}}

    Here’s an example of a proper parameter, with a URL Encoded URL for http://zingtree.s3.amazonaws.com/samples/PDF-Form-demo.pdf

    &pdf_form=http%3A%2F%2Fzingtree.s3.amazonaws.com%2Fsamples%2FPDF-Form-demo.pdf
  5. When you run the tree, the URL of the merged form will be contained in the variable pdf_merged_file_url.
  6. Option: You can customize the variable name if you choose by adding &result_var=YOUR_VAR_NAME to the end of the message data. This would assign YOUR_VAR_NAME to the uploaded URL instead. Example:
    &pfd_form={{URL of FORM}}&result_var=my_pdf_form_upload

At the end of the process, a PDF with the merged form fields will be uploaded to the Zingtree servers, accessible at the URL in pdf_merged_file_url or a variable you chose in step 6.

Demo

We will fill in a PDF file located here. The PDF has the fields name, address, city and phone.

 

The demo tree is in the Zingtree Gallery here.