PDFUspsPicBarcode¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines an USPS Package Identification Code barcode.
Inheritance Object → PDFBarcode → PDF1DBarcode → PDFCode128Barcode → PDFCode128CBarcode → PDFUspsPicBarcode
Remarks
Supported characters: 0 1 2 3 4 5 6 7 8 9
Data length: 21 digits for standard barcode or 29 digits for concatenated barcode.
USPS PIC standard barcode structure:
1 - 2 - Application Identifier (91)
3 - 4 - Service Type Code (STC)
5 - 13 - Customer ID: DUNS number that uniquely identifies the customer
14 - 21 - Package Sequence Number (PSN)
USPS PIC concatenated barcode structure:
1 - 3 - Routing Application Identifier (420)
4 - 8 - 5-digit ZIP code
9 - 10 - Application Identifier (91)
11 - 12 - Service Type Code (STC)
13 - 21 - Customer ID: DUNS number that uniquely identifies the customer
22 - 29 - Package Sequence Number (PSN)
Constructors¶
PDFUspsPicBarcode()¶
Initializes a new PDFUspsPicBarcode object.
PDFUspsPicBarcode(String)¶
Initializes a new PDFUspsPicBarcode object.
Parameters
data String
The barcode data.
Properties¶
BackgroundColor¶
Gets or sets the barcode background color.
Property Value
PDFColor
A PDFColor that represents the color used to fill the barcode background.
BarcodeTextPosition¶
Gets or sets the barcode text position.
Property Value
PDFBarcodeTextPosition
A PDFBarcodeTextPosition that represents the position where the barcode text is displayed.
BarColor¶
Gets or sets the barcode bar color.
Property Value
PDFColor
A PDFColor that represents the color used to draw the barcode bars.
BarWidthReduction¶
Gets or sets the bar width reduction.
Property Value
Double
A value used for reducing the bar width (not the space width) in order to
compensate for ink bleeding when printing the barcode on various surfaces.
Data¶
Gets or sets the barcode data.
Property Value
String
A string of characters that represents the data to be encoded as a barcode.
Remarks
Each barcode type specifies the characters it supports.
EnableCheckSum¶
Gets or sets a value indicating whether a checksum should be computed.
Property Value
Boolean
If true, a checksum is computed automatically for the barcode.
Font¶
Gets or sets the barcode text font.
Property Value
PDFFont
A PDFFont that is used to draw the barcode text.
Height¶
Gets the barcode height.
Property Value
Double
The height of the barcode.
QuietZones¶
Gets the barcode quiet zones.
Property Value
PDFBarcodeQuietZones
Left, right, top and bottom quiet zones.
ShowCheckSum¶
Gets or sets indicating whether the computed checksum should be shown.
Property Value
Boolean
If true the checksum is shown together with the barcode text.
TextColor¶
Gets or sets the barcode text color.
Property Value
PDFColor
A PDFColor that represents the color used to display the barcode text.
Width¶
Gets the barcode width.
Property Value
Double
The width of the barcode.
XDimension¶
Gets or sets the X dimension.
Property Value
Double
The width of a narrow barcode bar.
YDimension¶
Gets or sets the Y dimension.
Property Value
Double
The height of a barcode bar.