Posted: 30 Jan 2019 5:56 EST Last activity: 13 Feb 2019 8:15 EST
PDF Connector to read each line of PDF
I want to read each line of PDF.
I am able to get the value by passing search string as input using PDF connector however my requirement is to read each line of PDF irrespective of any input string and accordingly need to put some extra logic.
***Edited by Moderator: Pallavi to update platform capability tags***
To interact with a specific line you can use the PDFconnector 'Pages' property. You will then want to create a proxy for the Pages. This will give you a page array. Using this array you can iterate through each page.
Now while this allows you to iterate through each page it still doesn't get you where you need. What you'll want to do is use the 'get' method and create a proxy of the result. This will get you one specific page.
From there you can use the GetLine method and get a proxy of the result. This proxy allows you to work with a specific line.
By using this logic and a series of for loops you should be able to iterate through a PDF line by line.
Are you saying to pass input strings as parameter in loop? I have below items in statements
01 Nov Transfer from FARHAN 750.00
Direct Debit - First Payment 315.81 302.90
02 Nov Direct debit ABCD 27.14 1,275.76
I want to get lines having ABCD and then corresponding Date and Amount. If you see in first occurrence of "ABCD" date is not available in same line so we have to traverse back to get the date which is 1st Nov however 1st Nov row doesn't have ABCD mentioned in line