Skip to main content

Barcodes

Version: 12.0

Barcodes

DynamicPDF Core Suite for .NET has built-in support for Barcodes. Barcodes are page elements placed on a page similar to other page elements. The following barcodes are supported.

Linear Barcodes​

  • Codabar
  • Code 128
  • Code 2 of 5
  • Code 3 of 9 & extended 3 of 9
  • Code 11
  • Code 93 & extended 93
  • EAN/JAN 13
  • EAN/JAN 13 Supplement 2
  • EAN/JAN 13 Supplement 5
  • EAN 14/GTIN-14
  • EAN/JAN 8
  • EAN/JAN 8 Supplement 2
  • EAN/JAN 8 Supplement 5
  • GS1 Databar (RSS)
  • IATA 2 of 5
  • Interleaved 2 of 5
  • ISBN
  • ISBN Supplement 2
  • ISBN Supplement 5
  • ISMN
  • ISMN Supplement 2
  • ISMN Supplement 5
  • ISSN
  • ISSN Supplement 2
  • ISSN Supplement 5
  • ITF 14
  • MSI Barcode (Modified Plessey)
  • Stacked GS1 Databar
  • UPC Version A
  • UPC Version A Supplement 2
  • UPC Version A Supplement 5
  • UPC Version E
  • UPC Version E Supplement 2
  • UPC Version E Supplement 5

Two-Dimensional Barcodes​

  • Aztec
  • Data Matrix Barcode
  • MacroPDF417
  • PDF417
  • QR Code

Postal Barcodes​

  • Australia Post
  • Deutsche Post Identcode
  • Deutsche Post Leitcode
  • Intelligent Mail Barcode
  • KIX (Dutch KIX, Royal TNT Post Kix)
  • Postnet
  • RM4SCC (Royal Mail) Barcode
  • Singapore Post

Example​

Adding a barcode to a page is straight-forward, as the following code illustrates. For a complete example illustrating each barcode offered, refer to the GitHub example linked below.

page.Elements.Add(new Code128( "Barcode Data", 0, 0, 20 ) );
Code128 barcodeCode128 = new Code128("Code 128 Barcode.", 50, 50, 48, 0.75F);
page.Elements.Add(barcodeCode128);
Codabar barcodeCoda = new Codabar("A1234B", 50, 0, 48);
page.Elements.Add(barcodeCoda);
Public Shared Function Code128Barcode(document As Document) As Document
Dim page As New Page()
Dim barcode As New Code128("Code 128 Barcode.", 50, 50, 48, 0.75F)
page.Elements.Add(barcode)
document.Pages.Add(page)
Return document
End Function

[BarcodeExample.cs](https://github.com/DynamicPDF/examples-dynamicpdf-core-suite-dotnet-core/blob/master/dynamicpdf-csharp-examples/Examples/BarcodeExample.cs){#gitlink-id target=_blank}


[BarcodeExample.vb](https://github.com/DynamicPDF/examples-dynamicpdf-core-suite-dotnet-core/blob/master/dynamicpdf-vbnet-examples/Examples/BarcodeExample.vb){#gitlink-id target=_blank}

^^^ Template Example Figure 1. Document illustrating barcodes offered by Core Suite. ^^^

tip

The BarcodeExample class referenced above has examples in GitHub of every barcode type offered by Core Suite.