Click here to Skip to main content
11,644,284 members (70,927 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# VB.NET

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
0 OriginalGriff 650
1 494
2 Afzaal Ahmad Zeeshan 423
3 Sergey Alexandrovich Kryukov 409
4 CPallini 352
0 OriginalGriff 925
1 DamithSL 636
2 Afzaal Ahmad Zeeshan 622
3 Sergey Alexandrovich Kryukov 548
4 CPallini 521

Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2015
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