Class PdfCode93ExtendedBarcode
Inheritance
System.Object
PdfCode93ExtendedBarcode
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfCode93ExtendedBarcode : PdfCode93Barcode
Remarks
All 128 ASCII characters can be encoded in an extended Code 93 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 PdfCode93ExtendedBarcode.
PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode();
//Set the font to code93Ext.
code93Ext.Font = font;
//Set the barcode text.
code93Ext.Text = "CODE39Ext";
//Draw a barcode in the new Page.
code93Ext.Draw(page, new PointF(25, 500));
//Save the document to disk.
document.Save("Code93Ext.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 PdfCode93ExtendedBarcode.
Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode()
'Set the font to code93Ext.
code93Ext.Font = font
'Set the barcode text.
code93Ext.Text = "CODE39Ext"
'Draw a barcode in the new Page.
code93Ext.Draw(page, new PointF(25, 500))
'Save the document to disk.
document.Save("Code93Ext.pdf")
Constructors
PdfCode93ExtendedBarcode()
Initializes a new instance of the PdfCode93ExtendedBarcode class.
Declaration
public PdfCode93ExtendedBarcode()
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 PdfCode93ExtendedBarcode.
PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode();
//Set the font to code93Ext.
code93Ext.Font = font;
//Set the barcode text.
code93Ext.Text = "CODE39Ext";
//Draw a barcode in the new Page.
code93Ext.Draw(page, new PointF(25, 500));
//Save the document to disk.
document.Save("Code93Ext.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 PdfCode93ExtendedBarcode.
Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode()
'Set the font to code93Ext.
code93Ext.Font = font
'Set the barcode text.
code93Ext.Text = "CODE39Ext"
'Draw a barcode in the new Page.
code93Ext.Draw(page, new PointF(25, 500))
'Save the document to disk.
document.Save("Code93Ext.pdf")
PdfCode93ExtendedBarcode(String)
Initializes a new instance of the PdfCode93ExtendedBarcode class.
Declaration
public PdfCode93ExtendedBarcode(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 PdfCode93ExtendedBarcode.
PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode("Code93Ext");
//Set the font to code93Ext.
code93Ext.Font = font;
//Draw a barcode in the new Page.
code93Ext.Draw(page, new PointF(25, 500));
//Save the document to disk.
document.Save("Code93Ext.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 PdfCode93ExtendedBarcode.
Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode("Code93Ext")
'Set the font to code93Ext.
code93Ext.Font = font
'Draw a barcode in the new Page.
code93Ext.Draw(page, new PointF(25, 500))
'Save the document to disk.
document.Save("Code93Ext.pdf")
Methods
CalculateCheckDigit()
Calculates the check digit for this barcode specification.
Declaration
protected override char[] CalculateCheckDigit()
Returns
Type | Description |
---|---|
System.Char[] | The Check digits. |
Overrides
GetCheckSumSymbols()
To get the Checksum value
Declaration
protected char[] GetCheckSumSymbols()
Returns
Type | Description |
---|---|
System.Char[] | checksum symbols |