I need to fetch a particular data(Balance Due) from pdf files and compare the same with a column (Balance due) in excel.
Though the PDF file will be in same format, but positioning of the field Balance due may differ depending on number of invoice lines,etc.
How do i make my bot understand to fetch only that data which is balance Due??
Say my invoice looks like this, and I need to fetch the balance due amount for multiple pdf files:
I am trying the reconcile the pdf data with excel file data.
Fetch balance due amount from PDF and compare it with Excel data file.
@Mallika use read PDF activity to read PDF file and the split obtained text with respect to “Balance Due” and then split array(1) with respect to newline to get ur required text in new array1(0). U may or may not need to do further string manipulation based on your output.
Read pdf using Read pdf activity and assign output of it to a string variable.(ex.str1).
Split the the string(ex. str1) with respect to “Balance Due” and store the output into array variable(Ex.array1). use assign activity for below operation.
U can also use RemoveEmptyEntries option in place of None
Split array1(1) with respect to Newline since after splitting with “Balance Due” what ever comes after Balance Due will be stored in 1st position of array. And store it in a new array variable(Ex. array2).
Use assign activity for below operation.
But when i use Read PDF, i can mention only one specific file name.
How do i handle when i want the same to read multiple invoices file with different file names?
No, i cannot have the list before hand as the naming convention is fixed with time stamp.
So its dynamic and will be created on fly and saved.
This bot has to work on that invoice created at that point and do the reconciliation