0

I'm trying to extract the page number where the search string is found.

Please see below my partial code:

For Each match As Match In Regex.Matches(TextPDF,nino_pattern,RegexOptions.IgnoreCase)
     nino_pattern = match.Value
     page = code to get the page number where the search string is found
     ToalPage = Reader.NumberOfPages
     FileWriter.WriteLine(filename & vbTab & nino_pattern & vbTab & Page & ToalPage)
Next
Bugs
  • 4,491
  • 9
  • 32
  • 41
fmLeigh
  • 21
  • 5
  • 1
    If its VB.net why have you marked it c#? – BugFinder Feb 01 '17 at 10:54
  • If answer is provided in C#, i can convert the code into VBnet. – fmLeigh Feb 01 '17 at 11:22
  • Possible duplicate of [Search Particular Word in PDF using Itextsharp](http://stackoverflow.com/questions/17485548/search-particular-word-in-pdf-using-itextsharp) it's in C# but will get you exactly what you need. – Trevor Feb 01 '17 at 13:48

0 Answers0