iText 9.0.0 API
|
This is a class that is used to implement the logic common to all 2D barcodes. More...
Public Member Functions |
|
abstract Rectangle | GetBarcodeSize () |
Gets the maximum area that the barcode and the text, if any, will occupy. More... |
|
abstract Rectangle | PlaceBarcode (PdfCanvas canvas, Color foreground) |
Places the barcode in a PdfCanvas . More... |
|
virtual PdfFormXObject | CreateFormXObject (PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
abstract PdfFormXObject | CreateFormXObject (Color foreground, PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
Static Package Attributes |
|
const float | DEFAULT_MODULE_SIZE = 1 |
This is a class that is used to implement the logic common to all 2D barcodes.
This is a class that is used to implement the logic common to all 2D barcodes. A 2D barcode is a barcode with two dimensions; this means that data can be encoded vertically and horizontally.
|
pure virtual |
Creates a PdfFormXObject with the barcode.
foreground | The color of the pixels. It can be null |
document | The document |
Implemented in iText.Barcodes.BarcodePDF417, iText.Barcodes.BarcodeDataMatrix, and iText.Barcodes.BarcodeQRCode.
|
inlinevirtual |
Creates a PdfFormXObject with the barcode.
Creates a PdfFormXObject with the barcode. Default foreground color will be used.
document | The document |
|
pure virtual |
Gets the maximum area that the barcode and the text, if any, will occupy.
Gets the maximum area that the barcode and the text, if any, will occupy. The lower left corner is always (0, 0).
Implemented in iText.Barcodes.BarcodePDF417, iText.Barcodes.BarcodeDataMatrix, and iText.Barcodes.BarcodeQRCode.
|
pure virtual |
Places the barcode in a PdfCanvas
.
Places the barcode in a PdfCanvas
. The barcode is always placed at coordinates (0, 0). Use the translation matrix to move it elsewhere.
canvas | the PdfCanvas where the barcode will be placed |
foreground | the foreground color. It can be null |
Implemented in iText.Barcodes.BarcodePDF417, iText.Barcodes.BarcodeDataMatrix, and iText.Barcodes.BarcodeQRCode.