These source code samples are assembled by their programming language and functions they apply. Want to convert protected pdf document to xls with pdf extractor sdk in your VB.NET app? ByteScout Data Extraction Suite is designed for it. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
Want to quickly learn? This fast application programming interfaces of ByteScout Data Extraction Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to convert protected pdf document to xls with pdf extractor sdk. Follow the instructions from scratch to work and copy the VB.NET code. This basic programming language sample code for VB.NET will do the whole work for you to convert protected pdf document to xls with pdf extractor sdk.
If you want to try other source code samples then the free trial version of ByteScout Data Extraction Suite is available for download from our website. Just try other source code samples for 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") ''' Document Password Can be set in two ways ''' 1. Using Property ''' 2. Using Events ' 1. Handle document password using Property ' extractor.Password = "password" ' 2. Handle document password using Event AddHandler extractor.PasswordRequired, New System.EventHandler(AddressOf extractor_PasswordRequired) ' Load sample PDF document extractor.LoadDocumentFromFile("encrypted (password is 'password').pdf") ' Uncomment this line if you need all pages converted into a single worksheet: 'extractor.PageToWorksheet = False ' Set the output format to XLS extractor.OutputFormat = SpreadseetOutputFormat.XLS ' Save the spreadsheet to file extractor.SaveToXLSFile("output.xls") ' Cleanup extractor.Dispose() ' Open result file in default associated application (for demo purposes) Process.Start("output.xls") End Sub Private Shared Sub extractor_PasswordRequired(sender As Object, e As EventArgs) ' Ask user for password and put it to `Password` property. CType(sender, XLSExtractor).Password = "password" End Sub End Class