ByteScout BarCode Generator SDK - C# - Macro PDF417 Barcode - ByteScout

ByteScout BarCode Generator SDK – C# – Macro PDF417 Barcode

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – Macro PDF417 Barcode

macro pdf417 barcode in C# and ByteScout Barcode SDK

macro pdf417 barcode in C#

Every ByteScout tool contains example C# source codes that you can find here or in the folder with installed ByteScout product. ByteScout Barcode SDK was made to help with macro pdf417 barcode in C#. ByteScout Barcode SDK is the robost SDK that generates high quality barcode images and pdf. Can generate all popular types of barcodes from QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix to more exotic barcode types. Fully customizable fonts, colors, print sizes. Includes special functions to ensure output quality, and tools for adding barcodes to new or existing pdf files and images.

This rich sample source code in C# for ByteScout Barcode SDK includes the number of functions and options you should do calling the API to implement macro pdf417 barcode. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. You can use these C# sample examples in one or many applications.

ByteScout Barcode SDK free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.

Try ByteScout Barcode SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.cs
      
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Bytescout.BarCode; namespace Sample { class Program { static void Main(string[] args) { // Create new barcode Barcode barcode = new Barcode(); // Set symbology barcode.Symbology = SymbologyType.MacroPDF417; // we will encode value 123456789 // will break into 3 segments, each segment includes 3 symbols // 1st segment // create the first segment barcode so set SegmentIndex = 1 barcode.Options.PDF417SegmentIndex = 1; // Set value barcode.Value = "123"; // set that this is not the last segment yet barcode.Options.PDF417LastSegment = false; // Save barcode to image barcode.SaveImage("MacroPDFBarcode-part1.png"); // 2nd segment // create the 2nd segment barcode so set SegmentIndex = 2 barcode.Options.PDF417SegmentIndex = 2; // Set value barcode.Value = "456"; // set that this is not the last segment yet barcode.Options.PDF417LastSegment = false; // Save barcode to image barcode.SaveImage("MacroPDFBarcode-part2.png"); // 3rd segment // create the 3rd segment barcode so set SegmentIndex = 3 barcode.Options.PDF417SegmentIndex = 3; // Set value barcode.Value = "789"; // set that this is the LAST segment, so set PDF417LastSegment = TRUE barcode.Options.PDF417LastSegment = true; // Save barcode to image barcode.SaveImage("MacroPDFBarcode-part3.png"); // now open all three images // Show image in default image viewer Process.Start("MacroPDFBarcode-part1.png"); Process.Start("MacroPDFBarcode-part2.png"); Process.Start("MacroPDFBarcode-part3.png"); } } }

Try ByteScout Barcode SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout Barcode SDK Home Page

Explore ByteScout Barcode SDK Documentation

Get ByteScout Barcode SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next