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



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


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?


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


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


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