PDF editor

Map an array to a PDF

Usually, the best way to collect information for a table within a PDF is via an array webform field, but arrays can also be used to collect any repeated information on a PDF. Take the example of an Account array with subfields for account name, account number, and account type. The PDF might capture this information in the form of a table, where each item (e.g. account) maps to a row and each subfield (e.g. account name) maps to a column. In another case, the PDF might have a separate page for each account and its information.

There are two ways to map arrays and their subfields to any set of PDF fields but each is best for a different use case.

PDF editor

Map to a table:

For standard tables where each array item maps to a row and each subfield in the array item corresponds to a column in the table, it is easiest to connect the PDF fields into an array that will automatically assign an index number (e.g. item 0, 1, 2, 3, etc.) that corresponds to the index of the item in the webform array.

1

How to navigate to the PDF editor

2

Select a PDF field.

Click on the PDF field that you want to assign to a subfield of the first item in the webform array.

3

Click the Advanced tab in the field editor panel.

PDF array 1

4

Select "Create an array."

Click Create an array. This will assign this PDF field to the first item’s subfield.

PDF array 2

5

Connect all subfields.

Connect the rest of the subfields of the same type (e.g. account name) in the order you want them filled in.

PDF array 3

6

Repeat.

When you have completed connecting all the array items for one subfield, repeat steps for any remaining subfields.

7

With any of the array fields selected, return to the Field options/Edit field tab of the field editor panel.

PDF array 4

8

Select webform array to fill PDF fields.

At the bottom of the Field options/Edit field tab, Select the webform array field you would like to fill the PDF array from. Each field will be automatically assigned the item number in the order you connected the subfields into the array.

Learn more about connecting PDF fields to webform fields

PDF array 5




Map across PDF pages:

For assigning array subfields to different areas or pages of a PDF, you can manually assign the index number of the webform array item to an individual PDF field, without creating a PDF array.

1

Create a webform array field.

How to create a webform array field

2

How to navigate to the PDF editor

3

Select a PDF field.

Click on the PDF field that you want to assign to a subfield of the first item in the webform array.

4

Fill from form value.

Scroll down to the How would you like to fill this PDF field? section on the Field options/Edit field panel. Choose Value from webform from the dropdown. Then select the previously added webform array field as the field to connect.

PDF array 6

5

Assign an index number.

Assign an index number to indicate the order of items to map from the webform array. 0 is the first item, 1 is the second, and so on.

PDF array 7

6

Connect a webform array subfield.

Assign the subfield from the webform array to the selected PDF field.

PDF array 8

7

Repeat.

Repeat for the remaining PDF fields that correspond to the webform array.

Back to Help Center

Related Articles

Create a webform array

Add a field to a PDF

Connect a PDF field to a webform field

Add logic to a webform array

Ready to upgrade your paperwork?

Create workflows from your existing PDFs, or fill, generate, and sign PDFs from your app via our API. Start automating your paperwork today.