ByteScout Document Parser SDK - VBScript and VB6 - Custom Template - ByteScout

ByteScout Document Parser SDK – VBScript and VB6 – Custom Template

  • Home
  • /
  • Articles
  • /
  • ByteScout Document Parser SDK – VBScript and VB6 – Custom Template

ByteScout Document Parser SDK – VBScript and VB6 – Custom Template

CustomTemplate.vbs

' This example demonstrates data parsing from an invoice using the custom template.

customTemplate = ".\SampleTemplate.yml"
inputDocument = ".\SampleInvoice.pdf"

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

' Load custom template
documentParser.AddTemplate customTemplate

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


WScript.Echo "Parsed data saved as 'output1.json'."

Set documentParser = Nothing



  Click here to get your Free Trial version of the SDK

prev
next