Convert PDF To JSON | VBScriptByteScout PDF Extractor SDK

Convert PDF To JSON | VBScript

PdfToJson.vbs:

VB
' Create Bytescout.PDFExtractor.JSONExtractor object
Set extractor = CreateObject("Bytescout.PDFExtractor.JSONExtractor")
extractor.RegistrationName = "demo"
extractor.RegistrationKey = "demo"

' Load sample PDF document
extractor.LoadDocumentFromFile "sample3.pdf"

extractor.SaveJSONToFile "output.json"

WScript.Echo "Extracted data saved to 'output.json' file."