ByteScout PDF Extractor SDK - VBScript - Convert PDF To XLS - ByteScout

ByteScout PDF Extractor SDK – VBScript – Convert PDF To XLS

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VBScript – Convert PDF To XLS

How to convert PDF to XLS in VBScript using ByteScout PDF Extractor SDK

How to convert PDF to XLS in VBScript

On this page you will learn from code samples for programming in VBScript.Writing of the code to convert PDF to XLS in VBScript can be done by developers of any level using ByteScout PDF Extractor SDK. ByteScout PDF Extractor SDK can convert PDF to XLS. It can be used from VBScript. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities.

VBScript code samples for VBScript developers help to speed up coding of your application when using ByteScout PDF Extractor SDK. In order to implement the functionality, you should copy and paste this code for VBScript below into your code editor with your app, compile and run your application. This basic programming language sample code for VBScript will do the whole work for you to convert PDF to XLS.

Free trial version of ByteScout PDF Extractor SDK is available for download from our website. Get it to try other source code samples for VBScript.

Try it today: Get 60 Day Free Trial or sign up for Web API

PdfToXls-CommandLine.vbs
      
if Wscript.Arguments.Length < 2 Then WScript.Echo "Usage: PdfToXls.vbs ""input.pdf"" ""output.xlsx""" WScript.Quit End If ' Create Bytescout.PDFExtractor.XLSExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.XLSExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Set Excel format extractor.OutputFormat = 1 ' 0 - XLS format; 1 - XLSX format. ' Uncomment this line if you need all pages converted into a single worksheet: 'extractor.PageToWorksheet = False ' Load sample PDF document extractor.LoadDocumentFromFile WScript.Arguments.Item(0) ' Extract data to Excel format extractor.SaveToXLSFile WScript.Arguments.Item(1) WScript.Echo "Extracted data saved to '" & WScript.Arguments.Item(1) & "' file."

Try it today: Get 60 Day Free Trial or sign up for Web API

PdfToXls.bat
      
REM Run the script from the command line cscript.exe PdfToXls-CommandLine.vbs "../../sample3.pdf" "output.xlsx" pause

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK page

Explore ByteScout PDF Extractor SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next