menu

Document Processing

PdfCode39ExtendedBarcode Class - C# PDF Library API Reference | Syncfusion

    Show / Hide Table of Contents

    PdfCode39ExtendedBarcode Class

    Inheritance
    System.Object
    PdfBarcode
    PdfUnidimensionalBarcode
    PdfCode39Barcode
    PdfCode39ExtendedBarcode
    Inherited Members
    PdfBarcode.BackColor
    PdfBarcode.BarColor
    PdfBarcode.barHeight
    PdfBarcode.BarHeight
    PdfBarcode.bounds
    PdfBarcode.Bounds
    PdfBarcode.Location
    PdfBarcode.NarrowBarWidth
    PdfBarcode.QuietZone
    PdfBarcode.size
    PdfBarcode.Size
    PdfBarcode.Text
    PdfBarcode.TextColor
    PdfUnidimensionalBarcode.BarcodeToTextGapHeight
    PdfUnidimensionalBarcode.check
    PdfUnidimensionalBarcode.Draw(PdfGraphics)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, PointF)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, PointF, SizeF)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, RectangleF)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, Single, Single, Single, Single)
    PdfUnidimensionalBarcode.Draw(PdfPageBase)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, PointF)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, PointF, SizeF)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, RectangleF)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, Single, Single, Single, Single)
    PdfUnidimensionalBarcode.EnableCheckDigit
    PdfUnidimensionalBarcode.EncodeStartStopSymbols
    PdfUnidimensionalBarcode.Font
    PdfUnidimensionalBarcode.GetSizeValue()
    PdfUnidimensionalBarcode.PaintRectangle(PdfGraphics, RectangleF)
    PdfUnidimensionalBarcode.PaintRectangle(PdfPageBase, RectangleF)
    PdfUnidimensionalBarcode.PaintRectangleTag(PdfTemplate, RectangleF)
    PdfUnidimensionalBarcode.ShowCheckDigit
    PdfUnidimensionalBarcode.TextAlignment
    PdfUnidimensionalBarcode.TextDisplayLocation
    PdfUnidimensionalBarcode.ToImage()
    PdfUnidimensionalBarcode.ToImage(SizeF)
    PdfUnidimensionalBarcode.Validate(String)
    Namespace: Syncfusion.Pdf.Barcode
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfCode39ExtendedBarcode : PdfCode39Barcode
    Remarks

    All 128 ASCII characters can be encoded in an extended Code 39 barcode

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Creates a new page and adds it as the last page of the document
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
    //Creates a new PdfCode39ExtendedBarcode.
    PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode();
    //Set the font to code39Ext.
    code39Ext.Font = font;
    //Set the barcode text.
    code39Ext.Text = "Code39Ext";
    //Draw a barcode in the new Page.
    code39Ext.Draw(page, new PointF(25, 500));
    //Save the  document to disk.
    document.Save("Code39Ext.pdf");
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument()
    'Creates a new page and adds it as the last page of the document
    Dim page As PdfPage = document.Pages.Add()
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
    'Creates a new PdfCode39ExtendedBarcode.
    Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode()
    'Set the font to code39Ext.
    code39Ext.Font = font
    'Set the barcode text.
    code39Ext.Text = "Code39Ext"
    'Draw a barcode in the new Page.
    code39Ext.Draw(page, new PointF(25, 500))
    'Save the  document to disk.
    document.Save("Code39Ext.pdf")

    Constructors

    PdfCode39ExtendedBarcode()

    Initializes a new instance of the PdfCode39ExtendedBarcode class.

    Declaration
    public PdfCode39ExtendedBarcode()
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Creates a new page and adds it as the last page of the document
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
    //Creates a new PdfCode39ExtendedBarcode.
    PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode();
    //Set the font to code39Ext.
    code39Ext.Font = font;
    //Set the barcode text.
    code39Ext.Text = "Code39Ext";
    //Draw a barcode in the new Page.
    code39Ext.Draw(page, new PointF(25, 500));
    //Save the  document to disk.
    document.Save("Code39Ext.pdf");
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument()
    'Creates a new page and adds it as the last page of the document
    Dim page As PdfPage = document.Pages.Add()
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
    'Creates a new PdfCode39ExtendedBarcode.
    Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode()
    'Set the font to code39Ext.
    code39Ext.Font = font
    'Set the barcode text.
    code39Ext.Text = "Code39Ext"
    'Draw a barcode in the new Page.
    code39Ext.Draw(page, new PointF(25, 500))
    'Save the  document to disk.
    document.Save("Code39Ext.pdf")

    PdfCode39ExtendedBarcode(String)

    Initializes a new instance of the PdfCode39ExtendedBarcode class.

    Declaration
    public PdfCode39ExtendedBarcode(string text)
    Parameters
    Type Name Description
    System.String text

    The Barcode text.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Creates a new page and adds it as the last page of the document
    PdfPage page = document.Pages.Add();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
    //Creates a new PdfCode39ExtendedBarcode.
    PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode("Code39Ext");
    //Set the font to code39Ext.
    code39Ext.Font = font;
    //Draw a barcode in the new Page.
    code39Ext.Draw(page, new PointF(25, 500));
    //Save the  document to disk.
    document.Save("Code39Ext.pdf");
    'Create a new PDF document.
    Dim document As PdfDocument = New PdfDocument()
    'Creates a new page and adds it as the last page of the document
    Dim page As PdfPage = document.Pages.Add()
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
    'Creates a new PdfCode39ExtendedBarcode.
    Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode("Code39Ext")
    'Set the font to code39Ext.
    code39Ext.Font = font
    'Draw a barcode in the new Page.
    code39Ext.Draw(page, new PointF(25, 500))
    'Save the  document to disk.
    document.Save("Code39Ext.pdf")

    Methods

    CalculateCheckDigit()

    Internal method to calculate the check-digit

    Declaration
    protected override char[] CalculateCheckDigit()
    Returns
    Type Description
    System.Char[]

    check digit

    Overrides
    PdfCode39Barcode.CalculateCheckDigit()

    GetExtendedTextValue()

    Internal method to get the extended text.

    Declaration
    protected override void GetExtendedTextValue()
    Overrides
    PdfUnidimensionalBarcode.GetExtendedTextValue()

    See Also

    PdfCodabarBarcode
    PdfCode11Barcode
    PdfCode128ABarcode
    PdfCode128BBarcode
    PdfCode128CBarcode
    PdfCode32Barcode
    PdfCode39Barcode
    PdfCode93Barcode
    PdfCode93ExtendedBarcode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved