Convert PDF to Excel programmatically

with PDF Extractor SDK

PDF Extractor Software Development Kit (SDK) is a collection of methods compiled, linked and stored in a dynamic-link library (DLL) file that is required for application development. The purpose of these methods is to convert files from the Portable Document Format (PDF) to Microsoft Excel (XLS).

The PDF-to-Excel Conversion SDK can be used via COM API to support VB, .NET, Delphi, C/C++ applications.PDF Extractor SDK hides the complexity associated with converting PDF to Excel into as little as 2 lines of code.

“Fantastic product, extremely functional and support is magnificent.
We are using the extractor to parse PDF files supplied to us by a
customer (hence we have no control over formatting). We convert the PDF’s
to XML for distribution from our central server to our iPad based field
service software. Our customer can’t believe that we have been able to
process their PDF’s to drive our software – always good when you can
impress the customer.”

Jason

Multiple programming languages support

PDF Extractor successfully converts PDF documents written in other languages with different characters

Process Millions of PDF Documents

PDF Extractor’s high performance engine performs flawlessly processing large quantities of PDF reports, and more

Easy to use and implement

Even if your PDF documents have very complex structure you’ll find that PDF Extractor is very easy to use and integrate into your existing systems

No more extraction errors

PDF Extractor can process even damaged files that have complex structure that would need to processed manually otherwise

The sample source codes below show how to convert from PDF to XLS file for MS Excel in C# and Visual Basic .NET using Bytescout PDF Extractor SDK.


C#

using System.IO;
using Bytescout.PDFExtractor;
using System.Diagnostics;
 
namespace PDF2CSV2XLS
{
 
    class Program
    {
        static void Main(string[] args)
        {
            // Create Bytescout.PDFExtractor.XLSExtractor instance
            CSVExtractor extractor = new XLSExtractor();
            extractor.RegistrationName = "demo";
            extractor.RegistrationKey = "demo";
 
			File.Delete("output.xls");
 
            // Load sample PDF document
            extractor.LoadDocumentFromFile("sample3.pdf");
 
			// Save the spreadsheet to file
			extractor.SaveAsXLS("output.xls");
 
			// Open the spreadsheet in default associated application
            Process.Start("output.xls");
        }
    }
}


VB.NET

Imports System.IO
Imports Bytescout.PDFExtractor
Imports System.Diagnostics
 
Class Program
	Friend Shared Sub Main(args As String())
 
        ' Create Bytescout.PDFExtractor.XLSExtractor instance
 
		Dim extractor As New XLSExtractor()
		extractor.RegistrationName = "demo"
		extractor.RegistrationKey = "demo"
 
		File.Delete("output.xls")
 
		' Load sample PDF document
		extractor.LoadDocumentFromFile("sample3.pdf")
 
		' Save the spreadsheet to file
		extarctor.SaveAsXLS("output.xls")
 
		' Open the spreadsheet in default associated application
		Process.Start("output.xls")
	End Sub
End Class