I have another question friends.
I want it to search within several PDFs for a particular text.
I am looking for the text with this string.
–ExtracDataPDF.Substring(ExtracDataPDF.IndexOf(“Payee Name”)+“Payee Name”.Length).Split(Environment.NewLine.ToCharArray)(0)–
but it gives me an error. could someone correct me please.
It is worth mentioning that when finding the text. The PDF containing it will be selected and sent by mail.
Hey Ana
Its hard to tell exactly what is wrong with the code because I’m unsure what you’re pushing it into, though I would suggest regular expressions to do this kind of work.
If you’re not actually needing to extract the details and simply want to detect for the text “Payee Name: First Last” I would suggest using the regular expression activities to just find rather than extract.
If you do need to extract the name from the text like ‘blah blah Payee Name Kane Baden blah blah’ to be used later, the regular expression will be able to extract the text after “Payee Name”.
1 Like