I'm currently working on windows application that is loading electoral roll pdf file. What I'm trying to do is to get the data as per Sr. No., Epic No., Name, Father's / Husbands Name, Age, Sex, House No. and pincode.
Data is available in 3 columns and 10 rows i.e. 30 persons details per page (Some pages may have less).
- VB.Net 2010
- .Net 4.5 Framework
- Acrobat Reader DC
- OS: Windows 7
This is what I found from one of the site but doesn't work
Dim pdfFile As String = TextBox1.Text
Dim PDFrdr As New PdfReader(pdfFile)
Dim PDFfld As Object
For Each PDFfld In PDFrdr.AcroFields.Fields
If TextBox3.Text = "" Then
TextBox3.Text = PDFfld.key.ToString()
Else
TextBox3.Text = TextBox3.Text & Environment.NewLine & PDFfld.key.ToString()
End If
Next