RPAPDF
Read PDF by regions
Read PDF by regions
Reads a PDF document using a previously created region model, extracting the data from the areas defined in the model. Ideal for extracting structured data from fixed-layout PDFs such as invoices, statements and forms.
Options
Extraction template
Select the region model created earlier by the PDF Data Region Model action.
PDF path
Enter the full path of the PDF file to read. Example: C:\Desktop\fatura.pdf.
Returns
The return fields are dynamic: each region of the model becomes a field named after the region, holding the text read from it (Text).
Javascript code
js
actions["action-id"].region_name // text read from the region (Text)
Field selection
- region_name — text read from the region (Text). One field for each region of the model.
Rules and Conditions
- The PDF path and Extraction template fields are required.
- The given PDF must have the same layout as the one used to create the region model.
- The region model must have been created earlier by the PDF Data Region Model action.
- Region names must be unique. If the model has regions with the same name, the action fails with the
DUPLICATED_REGION_NAMEerror instead of returning incomplete data. - Regions that run past the page edge are limited to the page size. A region left with zero width or height causes an error.
- The text of each region is read by OCR from an image of the page.