how di I get the PNR, INVOICE DATE, HSTIN/ UIN OF Customer, place of supply
Original Invoice No:00000/0000000000 Invoice No: 000000/0000000000
Original Invoice Date:26Nov2018
11:38 AM Invoice Date: 03Dec2018
10:43 AM
Bill to
Passenger: MR. ARINDAM MUKHERJEE
PNR: z8zz3Z Sector: Gangtok Kolkata
GSTIN / UIN of Customer: 06AAACM0829Q1Z8 Place of Supply: Haryana
@shilpa1, as @HareeshMR mentioned, you can use string manipulation or you can also go with Regex (if you are good at it).
I would suggest you to iterate through this input string line by line and then use string manipulation / regex. Also don’t forget to handle issues by putting IF condition.
-Use Read PDF Text Activity
-Convert the string type of output in array (use new line delimiter)
-Loop through the array using for each loop
-use conditions to check whether the desired text exists or not
You are giving capital O, i mean upper case O in the activity to split and in the text you have small O i.e., lower case O. Try copy and pasting the text in the full text
Substring is the one which can give us the value from the index and upto the length which we give in the function and split is a function which can split or divide the text upto which we give in the function. If we want to split upto a space (" "c) is the input or if we want to split upto the next line, we use Environment.NewLine.Tochararray @shilpa1