ByteScout Data Extraction Suite - VB.NET - Convert protected pdf document to xls with pdf extractor sdk - ByteScout

ByteScout Data Extraction Suite – VB.NET – Convert protected pdf document to xls with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – VB.NET – Convert protected pdf document to xls with pdf extractor sdk

How to convert protected pdf document to xls with pdf extractor sdk in VB.NET and ByteScout Data Extraction Suite

How to write a robust code in VB.NET to convert protected pdf document to xls with pdf extractor sdk with this step-by-step tutorial

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.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

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.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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next