Skip to main content

PDF table configuration for data retrieval

Before you define a table in a PDF with the PdfConnector component in Pega Robot Studio, you need to meet business requirements to determine how to organize and treat the table. For example, you develop an automation that processes an invoice and reads each row to determine the number of:

  • Items that are ordered.
  • Items that are on backorder.
  • Items that are delivered.
  • Total cost of each item.

The process to extract the values from a PDF table in which you require data from each row differs from how you extract data from a specific cell of the table.

PDF table identification

Before adding table values, you add a document name and identifier for the PDF document. It is also a best practice to confirm the configuration of the tables on the Document tab. After entering the Document type name, click Show to highlight all tables recognized by the PdfConnector. If your table is not highlighted, you can use the Include rectangles to increase the number of tables recognized in your document if necessary.

Screenshot showing a table highlighted on the Document tab of the Add New Document Type wizard.
Document tab of the Add New Document Type wizard

Table values

After you have named and identified the table, the values are ready for configuration. Table value configuration occurs on the Values tab of the Add New Document Type wizard.

In the following image, click the + icons to learn more about configuring table values.

Table values in an automation

Transfer of table data requires using a LookupTable component from the Toolbox. The LookupTable needs an auto-incrementing primary key column and data columns named the same as the columns from your table. For more information about working with Lookup Tables, see the LookupTable component.

Use the LookupTable component method ReplaceTableAutoKey to assign the table value to LookupTable with an auto-incremented key. In the following image, the data from the tblInvoice PDF value is sent to the lookupTable using a new auto-incremented key value.

Screenshot of an example automation that transfers a table value into a lookupTable component.

Check your knowledge with the following interaction:


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice