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
Add Barcode to PDF | VBScript
AddBarcodeToPdfDocument.vbs:
VB
' 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-left corner of every document page barcode.DrawToPDF "..\wikipedia.pdf", -1, 10, 10, "result.pdf" ' Open the output file in default PDF viewer. Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false Set shell = Nothing Set barcode = Nothing