Anvil Document SDK is live on Product Hunt. We'd love your support!Vote for Anvil.
Anvil Logo
Products
Industries
Resources
Developers
PDF editor

Map a list to a PDF

Usually, the best way to collect information for a table within a PDF is via an list webform field, but lists can also be used to collect any repeated information on a PDF. Take the example of an Account list 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 lists and their subfields to any set of PDF fields but each is best for a different use case.

Back to Help Center

Map to a table:

For standard tables where each list item maps to a row and each subfield in the list 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 list.

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 list.

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 Edit field tab of the field editor panel.

PDF array 4

8

Select webform list to fill the PDF array fields.

At the bottom of the 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 list subfields to different areas or pages of a PDF, you can manually assign the index number of the webform list item to an individual PDF field, without creating a PDF array.

1

Create a webform list field.

How to create a webform list 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 list.

4

Fill from form value.

Scroll down to the How would you like to fill this PDF field? section on the Field options panel. Choose From a connected webform field from the dropdown. Then select the previously added webform list 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 list. 0 is the first item, 1 is the second, and so on.

PDF array 7

6

Connect a webform list subfield.

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

PDF array 8

7

Repeat.

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

Back to Help Center

Other common posts

1 - 0 of 0

Sign up for a live demo

Request a 30-minute live demo today and we'll get in touch shortly. During the meeting our Sales team will help you find the right solution, including:
  • Simplifying data gathering
  • Streamlining document preparation
  • Requesting e-signatures
  • Building and scaling your business
Want to try Anvil first?Sign up for free
Want to try Anvil first?Sign up for free