convert PDF To XLSX - VB.NET
PDF Extractor SDK sample in VB.NET demonstrating ‘convert PDF To XLSX’
Program.vb
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.xlsx")
' Load sample PDF document
extractor.LoadDocumentFromFile("sample3.pdf")
' Uncomment this line if you need all pages converted into a single worksheet:
'extractor.PageToWorksheet = False
' Set the output format to XLSX
extractor.OutputFormat = SpreadseetOutputFormat.XLSX
' Save the spreadsheet to file
extractor.SaveToXLSFile("output.xlsx")
' Cleanup
extractor.Dispose()
' Open result file in default associated application (for demo purposes)
Process.Start("output.xlsx")
End Sub
End Class