ByteScout Document Parser SDK - VBScript and VB6 - General Example - 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 Document Parser SDK – VBScript and VB6 – General Example

  • Home
  • /
  • Articles
  • /
  • ByteScout Document Parser SDK – VBScript and VB6 – General Example

ByteScout Document Parser SDK – VBScript and VB6 – General Example

GeneralExample.vbs

' This example demonstrates document data parsing to JSON and YAML formats.

templatesFolder = "..\..\_Sample Templates"
inputDocument1 = "..\..\DigitalOcean.pdf"
inputDocument2 = "..\..\AmazonAWS.pdf"


' Create DocumentParser object
Set documentParser = CreateObject("Bytescout.DocumentParser.DocumentParser")
documentParser.RegistrationName = "demo"
documentParser.RegistrationKey = "demo"

' Loading templates...
documentParser.AddTemplates(templatesFolder)

' Parse document data in JSON format
documentParser.ParseDocument inputDocument1, "output1.json", 0 ' 0 = OutputFormat.JSON

' Parse document data in YAML format
documentParser.ParseDocument inputDocument2, "output2.yaml", 1 ' 1 = OutputFormat.YAML

WScript.Echo "Parsed data saved as 'output1.json' and 'output2.yaml'."

Set documentParser = Nothing



  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next