Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Can anyone point me to a solution, or tool for exracting data from a PDF file.

 

The file has not been flattened, meaning I can highlight all of the text and the copy and paste the text to another file. pull out the data and evaluate it.

 

Is this possible?

Go Beavs!!!
Posted

Of course it's possible!

I can show you a tool but it's not free, "Component One PDF" is a component for .NET applications so enable them to work with PDF files.

If you use it, the only thing left is creating Excel files.

So you can do something like:

Dim ExcelString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FileTextBox.Text + ";Extended Properties=Excel 8.0;"
Dim ExcelConnection As New OleDbConnection(ExcelString)
ExcelConnection.Open()
Dim ExcelCommand As New OleDbCommand()
ExcelCommand.Connection = ExcelConnection
ExcelCommand.CommandText = "CREATE TABLE Sheet1 (TableName Char(255))"
ExcelCommand.ExecuteNonQuery()
...
ExcelConnection.Close()

Don't ask what your country can do for you, ask what you can do for your country...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...