Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for VBScript plus the guidelines and the code below will help you quickly learn how to convert pdf to xls with pdf extractor sdk. Just copy and paste the code into your VBScript application’s code and follow the instructions. Use of ByteScout PDF Suite in VBScript is also described in the documentation included along with the product.
If you want to try other source code samples then the free trial version of ByteScout PDF Suite is available for download from our website. Just try other source code samples for VBScript.
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."
REM Run the script from the command line cscript.exe PdfToXls-CommandLine.vbs "../../sample3.pdf" "output.xlsx" pause