|
HiraokaHyperTools.iTextSharp-LGPL
0.3.0
|
Public Member Functions | |
| BarcodeInter25 () | |
| override Rectangle | PlaceBarcode (PdfContentByte cb, Color barColor, Color textColor) |
| override System.Drawing.Image | CreateDrawingImage (System.Drawing.Color foreground, System.Drawing.Color background) |
Public Member Functions inherited from iTextSharp.text.pdf.Barcode | |
| PdfTemplate | CreateTemplateWithBarcode (PdfContentByte cb, Color barColor, Color textColor) |
| Image | CreateImageWithBarcode (PdfContentByte cb, Color barColor, Color textColor) |
Static Public Member Functions | |
| static string | KeepNumbers (string text) |
| static char | GetChecksum (string text) |
| static byte[] | GetBarsInter25 (string text) |
Properties | |
| override Rectangle? | BarcodeSize [get] |
Properties inherited from iTextSharp.text.pdf.Barcode | |
| 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 | |
Static Public Attributes inherited from iTextSharp.text.pdf.Barcode | |
| 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 |
Protected Attributes inherited from iTextSharp.text.pdf.Barcode | |
| 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 interleaved 2 of 5. The text can include non numeric characters that are printed but do not generate bars. The default parameters are:
*x = 0.8f; *n = 2; *font = BaseFont.CreateFont("Helvetica", "winansi", false); *size = 8; *baseline = size; *barHeight = size * 3; *textint= Element.ALIGN_CENTER; *generateChecksum = false; *checksumText = false;
| iTextSharp.text.pdf.BarcodeInter25.BarcodeInter25 | ( | ) |
Creates new BarcodeInter25
|
virtual |
Implements iTextSharp.text.pdf.Barcode.
|
static |
Creates the bars for the barcode.
| text | the text. It can contain non numeric characters |
|
static |
Calculates the checksum.
| text | the numeric text |
|
static |
Deletes all the non numeric characters from text.
| text | the text |
string with only numeric characters
|
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.
|
get |
Gets the maximum area that the barcode and the text, if any, will occupy. The lower left corner is always (0, 0).