PdfCode39ExtendedBarcode Class
Inheritance
System.Object
PdfCode39ExtendedBarcode
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
GetExtendedTextValue()
Internal method to get the extended text.
Declaration
protected override void GetExtendedTextValue()