ByteScout PDF Extractor SDK - VBScript and VB6 - PDF To XLS - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Extractor SDK – VBScript and VB6 – PDF To XLS

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

ByteScout PDF Extractor SDK – VBScript and VB6 – PDF To XLS

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." [/vb]

PDFToXLS.bat

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




  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next