Click here to Skip to main content
13,145,774 members (62,950 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I'm using vs2010,itextsharp. I need to convert my pdf datas to Excel. my pdf contains table wise datas. so i want the datas in same view as pdf to Excel.. Help me anyone.
Posted 11-Oct-12 21:10pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Refer similar solved QA: PDF table data to Excel using[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try code I use to extract text from PDF file:
Dim mPDF as string="C:\test.pdf"
Dim mTXT as string="C:\test.txt"
Dim mPDFreader As New iTextSharp.text.pdf.PdfReader(mPDF)
Dim mPageCount as integer  = mPDFreader.NumberOfPages()
 'Create the text file.
 Dim fs As FileStream = File.Create(mTXT)
 Dim strategy As iTextSharp.text.pdf.parser.SimpleTextExtractionStrategy
            For i As Integer = 1 To mPageCount
                strategy = parser.ProcessContent(i, New iTextSharp.text.pdf.parser.SimpleTextExtractionStrategy())
                Dim info As Byte() = New UTF8Encoding(True).GetBytes(strategy.GetResultantText())
                fs.Write(info, 0, info.Length)

Load the text file and save data to excel file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100