ByteScout BarCode Generator SDK - VBScript - Add To New PDF - 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 BarCode Generator SDK – VBScript – Add To New PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VBScript – Add To New PDF

ByteScout BarCode Generator SDK – VBScript – Add To New PDF

AddBarcodeToPdfDocument.vbs

' Create barcode object and register it
Set barcode = CreateObject("Bytescout.BarCode.Barcode")
barcode.RegistrationName = "demo"
barcode.RegistrationKey = "demo"

' set symbology to DataMatrix
barcode.Symbology = 15 ' 15 = DataMatrix symbology type

' set barcode value to encode
barcode.Value = "Sample barcode" 

' Place barcode at top-right corner of every document page
barcode.DrawToNewPDF "barcode.pdf", 595,842, 500, 50

' Open the output file in default PDF viewer.
Set shell = CreateObject("WScript.Shell")
shell.Run "barcode.pdf", 1, false
Set shell = Nothing

Set barcode = Nothing



  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next