I have one use case, it is related to PDF extraction. I have one bank statement, The expectation is I have to add the total of cr dt and the balance column end of the statement. The file has multiple pages and each page looks like the following
If you can see the yellow highlighted area, there I have to add the total value. Now what would be the best approach to solve this use case?
Note: The first page of the statement is details about the bank and account details. So need to read the file from the second page in order to extract the amounts.
Please feel free to ask if you have any questions, your help would be highly appreciated.
You will neet UiPath.PDF.Activities package inside that you can use read pdf text where you can give Range - The range of pages that you want to read (e.g. “2-5, 7, 15-End” or “All”)
You can use the following approach:
Create one DataTable with all the required fields using Build DataTable activity.
And then read one by one pdf file using Read PDF text activity to read the data from PDF file and it will give you output as String. And then use String manipulation functions or Regular expressions to fetch required details from it. Use Add DataRow activity and pass values to add into the DataTable.
Perform Calculations: Once you’ve extracted the required data, perform calculations on datatable to get the final amounts.
Hi @learning_sourav ,
You can follow this steps:
1.read pdf to get string - strPDF
2.generate data table form string -dtPDF
3.use for each row in data table to get sum
could you share your file, if it’s private, you can send me in message, I will code in detail
regards,