Table of Contents

Class Ean8

Namespace
PdfSharp.Drawing.BarCodes
Assembly
PdfSharp.BarCodes.dll

An EAN-8 bar code (GTIN-8) with its digits under the bars.

public class Ean8 : BarCode
Inheritance
object
Ean8
Inherited Members

Remarks

The code is 7 digits, to which the check digit is added, or 8 digits with a check digit that must be right.

Size spans the bars and their quiet zones (7 modules on each side): 81 modules in all. Set TextLocation to None to leave the digits out.

Constructors

Ean8(string)

Initializes a new EAN-8 bar code. Set Size before drawing it.

Ean8(string, XSize)

Initializes a new EAN-8 bar code with its size, quiet zones included.

Properties

FullCode

The 8 digits of the code, with the check digit.

Methods

CheckCode(string)

Checks for 7 digits, or 8 with the right check digit.

GetModules()

The 67 modules from start guard to end guard, true for bar.

Render(XGraphics, XBrush, XFont?, XPoint)

Renders the bar code.