Click or drag to resize

PdfCode32Barcode Class

Represents a Code32 barcode.
Inheritance Hierarchy

Namespace: Spire.Pdf.Barcode
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfCode32Barcode : PdfCode39Barcode

The PdfCode32Barcode type exposes the following members.

Constructors
Name Description
Public method PdfCode32Barcode
Initializes a new instance of theclass.
Public method PdfCode32Barcode(String)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property BackColor
Gets or sets the back color of the barcode.
(Inherited from PdfBarcode .)
Public property BarcodeToTextGapHeight
Gets or sets the gap between the barcode and the displayed text.
(Inherited from PdfUnidimensionalBarcode .)
Public property BarColor
Gets or sets the bar color of the barcode.
(Inherited from PdfBarcode .)
Public property BarHeight
Gets or sets the bar height.
(Inherited from PdfBarcode .)
Public property Bounds
Gets or sets the rectangular area occupied by the barcode.
(Inherited from PdfBarcode .)
Public property EnableCheckDigit Obsolete.
Gets or sets a value indicating whether to enable to check digit calculation in the generated barcode or not.
(Inherited from PdfUnidimensionalBarcode .)
Public property EncodeStartStopSymbols
Gets or sets a value indicating whether [encode start stop symbols].
(Inherited from PdfUnidimensionalBarcode .)
Public property Font
Gets or sets the Text font.
(Inherited from PdfUnidimensionalBarcode .)
Public property Location
Gets or sets the location to render barcode in the PDF Document.
(Inherited from PdfBarcode .)
Public property NarrowBarWidth
Gets or sets the narrow bar width.
(Inherited from PdfBarcode .)
Public property QuietZone
Gets or sets the empty area which is to be allocated around the barcode.
(Inherited from PdfBarcode .)
Public property ShowCheckDigit Obsolete.
(Inherited from PdfUnidimensionalBarcode .)
Public property Size
Gets the size of the barcode.
(Inherited from PdfBarcode .)
Public property Text
Gets or Sets the barcode text.
(Inherited from PdfBarcode .)
Public property TextAlignment
Gets or sets the alignment of the text displayed on the barcode.
(Inherited from PdfUnidimensionalBarcode .)
Public property TextColor
Gets or sets the text color of the barcode text.
(Inherited from PdfBarcode .)
Public property TextDisplayLocation
Gets or sets the text display location.
(Inherited from PdfUnidimensionalBarcode .)
Top
Methods
Name Description
Protected method CalculateCheckDigit (Overrides PdfCode39Barcode CalculateCheckDigit .)
Public method Draw(PdfPageBase, PointF)
Draws the barcode on theat the specified location.
(Inherited from PdfUnidimensionalBarcode .)
Public method Draw(PdfPageBase, RectangleF)
Draws the barcode on theat the specified region.
(Inherited from PdfUnidimensionalBarcode .)
Protected method Draw(PdfPageBase, PointF, SizeF)
Draws the barcode on theat the specified location with the size.
(Inherited from PdfUnidimensionalBarcode .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Protected method GetBarcodeSymbols
Gets the barcode symbols.
Protected method GetCharWidth
Returns the Character width.
(Inherited from PdfUnidimensionalBarcode .)
Protected method GetDataToEncode
To get the Actual Encoded Text from from original Text..
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetSize
Returns the size of the barcode.
(Inherited from PdfUnidimensionalBarcode .)
Protected method GetTextToEncode (Overrides PdfCode39Barcode GetTextToEncode .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method PaintRectangle
Internal method used to paint bars on the page.
(Inherited from PdfUnidimensionalBarcode .)
Public method ToImage
Exports the barcode as image.

Return Value

Type:
The barcode image.
(Inherited from PdfUnidimensionalBarcode .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Protected method Validate
Internal method used to validate the given barcode text.
(Inherited from PdfUnidimensionalBarcode .)
Top
Fields
Name Description
Protected field check
Automatically adds the check digit to the barcode when true.
(Inherited from PdfUnidimensionalBarcode .)
Protected field continuous
To check whether Barcode is ContinuousBarcode or discrete
(Inherited from PdfUnidimensionalBarcode .)
Protected field m_bounds
Indicates the region of the barcode.
(Inherited from PdfBarcode .)
Top
Remarks
Only the following symbols are allowed in a Code 32 barcode: 1 2 3 4 5 6 7 8 9 0. The barcode length is 9 digits (8 user defined digits + 1 check digit). Code 32 barcodes are also known as Italian Pharmacode barcodes.
See Also