Command to delete everything after a certain data from the PDF is captured

readpdf

#1

Hello Everyone,

I am working on a project where I just want to capture certain information from an invoice in PDF format and ignore rest of the information on the document.

I used split function to capture that data but when I executed the task everything following the data I needed was also displayed

image

Here, I only want to the figure $93.5 and ignore rest of the information.

Please, any body tell me what command should I write to execute it?


#2

Split the string by NewLine. Then read the first element from the array.


#3

@Tom1989 If u want to get $93.50 which is at top then split ur text wrt to newline like below.

Split(str,{Environment.Newline})(0)

where str is a string variable which contains ur input text.