HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
Public Member Functions | |
Barcode128 () | |
override Rectangle | PlaceBarcode (PdfContentByte cb, Color barColor, Color textColor) |
override System.Drawing.Image | CreateDrawingImage (System.Drawing.Color foreground, System.Drawing.Color background) |
![]() | |
PdfTemplate | CreateTemplateWithBarcode (PdfContentByte cb, Color barColor, Color textColor) |
Image | CreateImageWithBarcode (PdfContentByte cb, Color barColor, Color textColor) |
Static Public Member Functions | |
static String | RemoveFNC1 (String code) |
static String | GetHumanReadableUCCEAN (String code) |
static string | GetRawText (string text, bool ucc) |
static byte[] | GetBarsCode128Raw (string text) |
Static Public Attributes | |
const char | CODE_AB_TO_C = (char)99 |
const char | CODE_AC_TO_B = (char)100 |
const char | CODE_BC_TO_A = (char)101 |
const char | FNC1_INDEX = (char)102 |
const char | START_A = (char)103 |
const char | START_B = (char)104 |
const char | START_C = (char)105 |
const char | FNC1 = '\u00ca' |
const char | DEL = '\u00c3' |
const char | FNC3 = '\u00c4' |
const char | FNC2 = '\u00c5' |
const char | SHIFT = '\u00c6' |
const char | CODE_C = '\u00c7' |
const char | CODE_A = '\u00c8' |
const char | FNC4 = '\u00c8' |
const char | STARTA = '\u00cb' |
const char | STARTB = '\u00cc' |
const char | STARTC = '\u00cd' |
![]() | |
const int | EAN13 = 1 |
const int | EAN8 = 2 |
const int | UPCA = 3 |
const int | UPCE = 4 |
const int | SUPP2 = 5 |
const int | SUPP5 = 6 |
const int | POSTNET = 7 |
const int | PLANET = 8 |
const int | CODE128 = 9 |
const int | CODE128_UCC = 10 |
const int | CODE128_RAW = 11 |
const int | CODABAR = 12 |
Properties | |
override Rectangle? | BarcodeSize [get] |
override string? | Code [set] |
![]() | |
float | X [get, set] |
float | N [get, set] |
BaseFont | Font [get, set] |
float | Size [get, set] |
float | Baseline [get, set] |
float | BarHeight [get, set] |
int | TextAlignment [get, set] |
bool | GenerateChecksum [get, set] |
bool | ChecksumText [get, set] |
bool | StartStopText [get, set] |
bool | Extended [get, set] |
virtual string | Code [get, set] |
bool | GuardBars [get, set] |
int | CodeType [get, set] |
abstract Rectangle | BarcodeSize [get] |
float | InkSpreading [get, set] |
String | AltText [get, set] |
Additional Inherited Members | |
![]() | |
float | x |
float | n |
BaseFont | font |
float | size |
float | baseline |
float | barHeight |
int | textAlignment |
bool | generateChecksum |
bool | checksumText |
bool | startStopText |
bool | extended |
string | code = "" |
bool | guardBars |
int | codeType |
float | inkSpreading = 0 |
String | altText |
Implements the code 128 and UCC/EAN-128. Other symbologies are allowed in raw mode.
The code types allowed are:
The default parameters are:
x = 0.8f; font = BaseFont.CreateFont("Helvetica", "winansi", false); size = 8; baseline = size; barHeight = size * 3; textint= Element.ALIGN_CENTER; codeType = CODE128;
iTextSharp.text.pdf.Barcode128.Barcode128 | ( | ) |
Creates new Barcode128
|
virtual |
Implements iTextSharp.text.pdf.Barcode.
|
static |
Generates the bars. The input has the actual barcodes, not the human readable text.
text | the barcode |
|
static |
Gets the human readable text of a sequence of AI.
code | the text |
|
static |
Converts the human readable text to the characters needed to create a barcode. Some optimization is done to get the shortest code.
text | the text to convert |
ucc | true if it is an UCC/EAN-128. In this case the character FNC1 is added |
|
virtual |
Places the barcode in a PdfContentByte
. The barcode is always placed at coodinates (0, 0). Use the translation matrix to move it elsewhere.
The bars and text are written in the following colors:
|
|
Result |
---|---|---|
|
|
bars and text painted with current fill color |
|
|
bars and text painted with |
|
|
bars painted with current color |
|
|
bars painted with |
cb | the PdfContentByte where the barcode will be placed |
barColor | the color of the bars. It can be null |
textColor | the color of the text. It can be null |
Implements iTextSharp.text.pdf.Barcode.
|
static |
Removes the FNC1 codes in the text.
code | the text to clean |
|
static |
|
static |
The charset code change.
|
static |
The charset code change.
|
static |
The charset code change.
|
static |
|
static |
|
static |
|
static |
The code for UCC/EAN-128.
|
static |
|
static |
|
static |
|
static |
|
static |
The start code.
|
static |
The start code.
|
static |
The start code.
|
static |
|
static |
|
static |
|
get |
Gets the maximum area that the barcode and the text, if any, will occupy. The lower left corner is always (0, 0).
|
set |
Sets the code to generate. If it's an UCC code and starts with '(' it will be split by the AI. This code in UCC mode is valid:
(01)00000090311314(10)ABC123(15)060916
code | the code to generate |