Create tables from a PDF form using the PDF extractor tool in App Engine Studio.

Note: This feature is only available if your licensing entitles you to "exclusive low code capability" and you have Table Builder for App Engine installed. Contact your Solutions consultant for more information.

Overview

The PDF extractor in App Engine Studio allows you to upload a PDF and then extract table fields for use in a custom app. This streamlines the process of building application data tables from pre-existing PDF forms because you no longer need to manually type in field labels.

Note: Ensure that you are mindful about recreating any tables that may already exist on the ServiceNow AI Platform. For example, with a PDF containing user demographic data, determine whether you want to reference existing user data tables rather than creating new tables from the PDF.

General navigation

The following table contains a list of some of the other basic navigational elements within the PDF extractor tool.

PDF parsing limitations

The following limitations currently exist when uploading a PDF using this tool:
  • PDF cannot be converted from an image.
  • PDF cannot be longer than 25 pages.
  • PDF file size cannot exceed 5 MB.
  • Languages other than English and French are not currently supported.

Create a table from a PDF form

Add data tables to your application by uploading a PDF in App Engine Studio.

Before you begin

Note: This feature is only available if your licensing entitles you to "exclusive low code capability" and you have Table Builder for App Engine installed. Contact your Solutions consultant for more information.
Verify that the PDF meets the following requirements:
  • PDF cannot be converted from an image.
  • PDF cannot be longer than 25 pages.
  • PDF file size cannot exceed 5 MB.
  • Languages other than English and French are not currently supported.

Role required: admin, sn_app_eng_studio.user, or delegated_developer

Procedure

  1. Navigate to All > App Engine > App Engine Studio.
  2. From the My Apps page, open your application.
  3. Next to the Data heading, select the Add icon (Add icon).
  4. Select Create a blank table, and then select Continue.
  5. Select Upload a PDF and then select Continue.
  6. Select and upload the PDF.
    You can drag the PDF file onto App Engine Studio or browse your computer.
    Note: It may take a moment for the PDF to load. Select the trash icon (Trash icon.) to clear the PDF selection.
    Figure 1. Choose the PDF you want to upload
    Choose the PDF you want to upload.
  7. Select Continue.
    Note: It may take up to a minute for the PDF to be parsed.
  8. Define the properties for your new table.
  9. Select Continue.
    You may now configure permissions for your new data table.
  10. Control who has access to create, read, write, and delete content from this table by adding new roles and/or defining the desired Create, Read, Write, Delete permissions for existing roles.

    Roles that you create in the table persist throughout the application and can be further defined in other tables you add. See Add application security for more information on how security permissions work.

    Note: At least one role must have read access for you to be able to preview the table.
  11. Select Continue after you have configured table permissions.
  12. Select Go to PDF extractor to open up the PDF in the PDF extractor.

What to do next

Next, you will add fields from the uploaded PDF. Follow the steps in Add new fields from a PDF form to populate your new data table with field columns.

Add new fields from a PDF form

Add field columns to your data table using the PDF extractor in App Engine Studio.

Before you begin

Note: This feature is only available if your licensing entitles you to "exclusive low code capability" and you have Table Builder for App Engine installed. Contact your Solutions consultant for more information.

Role required: admin, sn_app_eng_studio.user, or delegated_developer

Procedure

  1. Choose one of the following options:
    • Follow the steps outlined in the previous procedure to upload a PDF (see Create a table from a PDF form).
    • If you have already uploaded the PDF, select the Open pdf extractor element on the Forms or Table tab in Table Builder to launch the PDF extractor tool.
    The PDF form displays.
  2. Review the PDF.
    Use any of the navigational controls in the PDF pane to navigate to where you'd like to begin adding fields. See General navigation.
  3. Click Select to enter text selection mode.
  4. In the PDF, click on a field or text phrase to highlight it to use it as the basis for a new field.
    Figure 2. Add fields from PDF
    Add fields from PDF
  5. Edit the extracted text in the Field Label as needed for the new field you are going to add.
  6. Choose a Field type.

    Field type refers to the type of data that the new column will store. For example, to store plain text in the column, select String. To understand the basic field properties, see Add and customize a field in a table.

    Depending on the type that you select, you may need to fill in additional fields to further define the table column. For example, with Reference field types, search for and select the appropriate data table to reference.

    1. (Optional) If you have chosen to create a choice field, perform the following actions to populate options for the choice field.
      1. Choose a Choice Type from the menu. This controls whether or not the list will have None as an option.
      2. Click in the Choices field, and then enter text manually or select text on the PDF to automatically extract it.
      3. Click Add to add your choice to the list.
      Figure 3. Adding a choice field
      Adding a choice field.
    2. (Optional) Repeat the previous steps until all choices have been added for your choice field.
  7. Select the Table where you want to add the new field.
    Multiple options may appear if you have added reference tables. The original table is selected by default.
  8. Select Add field to add the field to the list of fields in the table on the right.
    Note: Any fields you add to the table on the right remain highlighted in green in the PDF to remind you that you have created a related field from them. If you delete a field from the tables on the right, the extracted text will no longer be highlighted.
  9. Repeat the steps above until you have added all the fields you want to add from the PDF.
    Note: You can also add fields manually by clicking +Add new field in the table on the right and entering details directly similar to how you add fields on the Table tab of Table Builder.
  10. Review the fields in your table and edit as necessary.
  11. Select Save.

What to do next

To open your data table in Table Builder, select Open data table and form above the displayed tables. For more information on editing your data tables in Table Builder, see Table Builder.

To add a reference table, see Add a reference table from a PDF form.

Add a reference table from a PDF form

Move fields into a new referenced data table using the PDF extractor in App Engine Studio.

Before you begin

Note: This feature is only available if your licensing entitles you to "exclusive low code capability" and you have Table Builder for App Engine installed. Contact your Solutions consultant for more information.

Role required: admin, sn_app_eng_studio.user, or delegated_developer

About this task

You may decide that you want to add some of the form information into separate tables that are referenced from the original table and can be referenced by other tables. For example, if you work for an insurance company, you may want to create separate data tables for bills, claims, and policies that can be referenced as separate data tables even though the information is extracted from a single PDF form.

You can add a reference field, and then create the corresponding reference data table directly from the PDF extractor in App Engine Studio.
Note: Before you create any new reference tables for your app, it's a good practice to verify that you are not accidentally recreating any tables that already exist on the ServiceNow AI Platform.

Procedure

  1. Choose one of the following options:
    • Follow the steps outlined in the previous procedure to upload a PDF (see Create a table from a PDF form).
    • If you have already uploaded the PDF, select the Open pdf extractor element on the Forms or Table tab in Table Builder to launch the PDF extractor tool.
    The PDF form displays.
  2. Select Add reference table in the right side panel to add a reference table to your table.
  3. Enter the following properties for your reference table.
    Next, you will add a reference field to the original table you are editing. This creates the connection between the tables (e.g., "Seller info").
  4. Select the Table label of the table where you want to add your reference field in (the original table is selected by default).
    The original table should be selected by default in the Table label field.
  5. Enter a Reference field label for this new reference field (e.g., "Seller information").
  6. Select fields from your original table to add them to your new reference table.
    These fields are related to the reference field you added to the current table.
    Figure 4. Add a reference table
    Add a reference table.
  7. Select Add reference table.
    The reference table appears below and contains the fields that you selected that were in the original table.
  8. Review and edit the fields and table properties as necessary.
    See General navigation for more information on additional navigational controls in the table pane.
  9. Select Save.

What to do next

To open your data table in Table Builder, select Open data table and form above the displayed tables. For more information on editing your data tables in Table Builder, see Table Builder.