ByteScout Barcode Suite - C# - Generate macro pdf417 barcode with barcode sdk - 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 Suite – C# – Generate macro pdf417 barcode with barcode sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – C# – Generate macro pdf417 barcode with barcode sdk

How to generate macro pdf417 barcode with barcode sdk in C# and ByteScout Barcode Suite

Step-by-step tutorial on how to generate macro pdf417 barcode with barcode sdk in C#

The sample source codes on this page shows how to generate macro pdf417 barcode with barcode sdk in C#. ByteScout Barcode Suite: the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK). It can generate macro pdf417 barcode with barcode sdk in C#.

Want to quickly learn? This fast application programming interfaces of ByteScout Barcode Suite for C# plus the guidelines and the code below will help you quickly learn how to generate macro pdf417 barcode with barcode sdk. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! If you want to use these C# sample examples in one or many applications then they can be used easily.

You can download free trial version of ByteScout Barcode Suite from our website with this and other source code samples for C#.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

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"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next