I am trying to exact some specific data from a PDF file Using IUPath.
The data in PDF looks like this :
**** hjeprj3 **** James Fish **** JDR0929879 **** jdloin2 B5339 ||
I need to exact the name “James Fish”. It will always have the same format, always **** text **** first name last name **** text And I will always have to extract the name, which will be different.
I used this function : PDFText.Substring(PDFText.IndexOf("**** ",0)+15,16) but as the name will always be diferent it doesn’t return the correct value.
I copied your function and here is the error I got :
Error ERROR Compiler error(s) encountered processing expression “PDFText.Substring(PDFText.IndexOf(“”,PDFText.IndexOf(“”)+1),3,PDFText.IndexOf(“”,PDFText.IndexOf(“”)+2))”.
Overload resolution failed because no accessible ‘Substring’ accepts this number of arguments. Main.xaml