Skip to main content

UPC Shipping Container Symbol (ITF-14)

  • 2 minutes to read

ITF-14 marks packaging that contains UPC or EAN labeled products. The symbology encodes a 14-digit GTIN with an Interleaved 2 of 5 structure and uses bearer bars to improve reading reliability.

View Example

Examples

Configure Barcode Settings (ITF14Options)

Use the ITF14Options class to configure ITF-14 barcode settings.

The following code snippet creates the ITF-14 barcode and customizes its options:

DevExpress Barcode Generator - ITF-14 barcode

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;

var itf14Options = new ITF14Options();
itf14Options.CalculateChecksum = true;
itf14Options.WideNarrowRatio = 3;
itf14Options.BackColor = Color.LightGray;
itf14Options.ShowText = false;
itf14Options.Padding = new Padding(5);
itf14Options.BorderWidth = 1;
itf14Options.BorderColor = Color.Blue;

using var itf14OptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_itf14.png"), FileMode.Create, FileAccess.Write);
using var itf14OptionsGenerator = new BarcodeGenerator(itf14Options);
itf14OptionsGenerator.Export("0123456709498765432101234567891", itf14OptionsStream, DXImageFormat.Png);

Configure Barcode Settings (Fluent API)

Use the ITF14OptionsBuilder class to configure ITF-14 barcode settings with Fluent API.

The following code snippet creates the ITF-14 barcode and customizes its options:

DevExpress Barcode Generator - ITF-14 barcode

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;

var tF14Options = ITF14OptionsBuilder.Create()
    .WithCalculateChecksum(true)
    .WithWideNarrowRatio(3)
    .WithBackColor(Color.LightGray)
    .WithShowText(false)
    .WithPadding(5)
    .WithBorderWidth(1)
    .WithBorderColor(Color.Blue)
    .Build();

var filePath = Path.GetFullPath("itf14_barcode.png");

using var stream = new FileStream(filePath, FileMode.Create);
using var generator = new BarcodeGenerator(tF14Options);
generator.Export("0123456709498765432101234567891", stream, DXImageFormat.Png);

Symbology-Specific Options

This symbology has no additional options.

See Also