Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
Get Word Coordinates in 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" ' Add the following params to get clean data with word nodes only: extractor.DetectNewColumnBySpacesRatio = 0.1 ' This splits all text into words extractor.PreserveFormattingOnTextExtraction = false ' Get rid of empty nodes extractor.SaveJSONToFile "output.json" WScript.Echo "Extracted data saved to 'output.json' file."