Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET
Hi
 
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 22:10pm
sencsk1.2K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Refer similar solved QA: PDF table data to Excel using Vb.net[^]
  Permalink  
Rate this: bad
good
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)
            Next
 fs.Close()
 
Load the text file and save data to excel file.
  Permalink  

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

  Print Answers RSS
0 Mathew Soji 334
1 Maciej Los 295
2 BillWoodruff 290
3 Afzaal Ahmad Zeeshan 257
4 DamithSL 225
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,045


Advertise | Privacy | Mobile
Web03 | 2.8.1411019.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
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