ByteScout BarCode Generator SDK - VBScript - Add Barcode to PDF - ByteScout

ByteScout BarCode Generator SDK – VBScript – Add Barcode to PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VBScript – Add Barcode to PDF

How to add barcode to PDF in VBScript with ByteScout Barcode SDK

This tutorial will show how to add barcode to PDF in VBScript

ByteScout tutorials are designed to explain the code for both VBScript beginners and advanced programmers. ByteScout Barcode SDK is the robost library (Software Development Kit) that is designed for automatic generation of high-quality barcodes for printing, electronic documents and pdf. All popular barcode types are supported from Code 39 and Code 129 to QR Code, UPC, GS1, GS-128, Datamatrix, PDF417, Maxicode and many others. Provides support for full customization of fonts, colors, output and printing sizes. Special tools are included to verify output quality and printing quality. Can add generated barcode into new or existing documents, images and PDF and you can use it to add barcode to PDF with VBScript.

Fast application programming interfaces of ByteScout Barcode SDK for VBScript plus the instruction and the code below will help you quickly learn how to add barcode to PDF. In your VBScript project or application you may simply copy & paste the code and then run your app! You can use these VBScript sample examples in one or many applications.

Trial version of ByteScout Barcode SDK can be downloaded for free from our website. It also includes source code samples for VBScript and other programming languages.

Try it today: Get 60 Day Free Trial or sign up for Web API

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-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

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout Barcode SDK page

Explore ByteScout Barcode SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next