Get table Version 3 (Python)
Action group: PDF
Description
The action returns the table from the specified page of the PDF-document.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Path to file | Path to the PDF file to extract the table from. | Robin.FilePath | Yes | |
Start page | The page in the document where the table starts. Numbering starts from 1. Default value is 1. | Robin.Numeric | No | |
End Page | The page in the document where the table ends | Robin.Numeric | No | |
Table number | The sequence number of the table in the document on the specified page. Numbering starts from 1. Default value is 1. | Robin.Numeric | No | |
Heading | If the value is «true», the first row of the table will be highlighted separately as a header and will not be included in the rows with the contents of the table. | Robin.Boolean | true | No |
Remove duplicate header | If the value is «true», indexes will be added to the same column names in the header of the resulting table. Numbering starts from 1. | Robin.Boolean | true | No |
Results | ||||
Table | A table generated from data retrieved from a source document. | Robin.DataTable |
Special conditions of use
The action only works with the text layer.
Example of use
Task
There are two tables on the second page of the PDF-document. Extract the second table and save it to CSV.
Solution
Use the "Get table", "Table to CSV" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Get table" action parameters.
- Set the "Table to CSV" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
The table is extracted from the PDF-document and saved to CSV.
Обзор
Инструменты контента