The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. 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 and you can use it to convert protected PDF document to XLS with PDF extractor SDK with C#.
These C# code samples for C# guide developers to speed up coding of the application when using ByteScout Data Extraction Suite. Just copy and paste the code into your C# application’s code and follow the instructions. Want to see how it works with your data then code testing will allow the function to be tested and work properly.
ByteScout Data Extraction Suite free trial version is available on our website. C# and other programming languages are supported.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System.IO; using Bytescout.PDFExtractor; using System.Diagnostics; namespace PDF2XLS { // // This example demonstrates how to provide password for protected PDF files. // class Program { static void Main(string[] args) { // Create Bytescout.PDFExtractor.XLSExtractor instance XLSExtractor extractor = 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 extractor.PasswordRequired += new System.EventHandler(extractor_PasswordRequired); // Load sample PDF document extractor.LoadDocumentFromFile(@".\encrypted (password is 'password').pdf"); // Set the output format to XLS extractor.OutputFormat = SpreadseetOutputFormat.XLS; // Save the spreadsheet to file extractor.SaveToXLSFile("output.xls"); // Cleanup extractor.Dispose(); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("output.xls"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } static void extractor_PasswordRequired(object sender, System.EventArgs e) { // Ask user for password and put it to `Password` property. ((XLSExtractor) sender).Password = "password"; } } }
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: