iText 9.0.0 API
|
A QRCode implementation based on the zxing code. More...
Public Member Functions |
|
BarcodeQRCode (String code, IDictionary< EncodeHintType, Object > hints) | |
Creates the QR barcode. More... |
|
BarcodeQRCode (String content) | |
Creates the QR barcode with default error correction level (ErrorCorrectionLevel.L) and default character set (ISO-8859-1). More... |
|
BarcodeQRCode () | |
Creates an instance of the BarcodeQRCode class. More... |
|
virtual String | GetCode () |
Gets the current data. More... |
|
virtual void | SetCode (String code) |
Sets the data to be encoded by the barcode. More... |
|
virtual IDictionary< EncodeHintType, Object > | GetHints () |
|
|
virtual void | SetHints (IDictionary< EncodeHintType, Object > hints) |
virtual void | Regenerate () |
Regenerates barcode after changes in hints or code. More... |
|
override Rectangle | GetBarcodeSize () |
Gets the size of the barcode grid More... |
|
virtual Rectangle | GetBarcodeSize (float moduleSize) |
Gets the barcode size More... |
|
override Rectangle | PlaceBarcode (PdfCanvas canvas, Color foreground) |
Places the barcode in a PdfCanvas . More... |
|
virtual Rectangle | PlaceBarcode (PdfCanvas canvas, Color foreground, float moduleSide) |
* Places the barcode in a PdfCanvas . More... |
|
override PdfFormXObject | CreateFormXObject (Color foreground, PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
virtual PdfFormXObject | CreateFormXObject (Color foreground, float moduleSize, PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
Public Member Functions inherited from iText.Barcodes.Barcode2D | |
virtual PdfFormXObject | CreateFormXObject (PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
Additional Inherited Members |
|
Static Package Attributes inherited from iText.Barcodes.Barcode2D | |
const float | DEFAULT_MODULE_SIZE = 1 |
A QRCode implementation based on the zxing code.
|
inline |
Creates the QR barcode.
code | the text to be encoded |
hints | barcode hints. See #setHints for description. |
|
inline |
Creates the QR barcode with default error correction level (ErrorCorrectionLevel.L) and default character set (ISO-8859-1).
content | the text to be encoded |
|
inline |
Creates an instance of the BarcodeQRCode class.
|
inlinevirtual |
Creates a PdfFormXObject with the barcode.
foreground | The color of the pixels. It can be null |
moduleSize | The size of the pixels. |
document | The document |
|
inlinevirtual |
Creates a PdfFormXObject with the barcode.
foreground | the color of the pixels. It can be null |
Implements iText.Barcodes.Barcode2D.
|
inlinevirtual |
Gets the size of the barcode grid
Implements iText.Barcodes.Barcode2D.
|
inlinevirtual |
Gets the barcode size
moduleSize | The module size |
|
inlinevirtual |
Gets the current data.
|
inlinevirtual |
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 |
Implements iText.Barcodes.Barcode2D.
|
inlinevirtual |
* Places the barcode in a PdfCanvas
.
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 |
moduleSide | the size of the square grid cell |
|
inlinevirtual |
Regenerates barcode after changes in hints or code.
|
inlinevirtual |
Sets the data to be encoded by the barcode.
Sets the data to be encoded by the barcode. If not specified in hints otherwise, the character set should be ISO-8859-1.
code | The data to encode |
|
inlinevirtual |
hints | modifiers to change the way the barcode is created. They can be EncodeHintType.ERROR_CORRECTION and EncodeHintType.CHARACTER_SET. For EncodeHintType.ERROR_CORRECTION the values can be ErrorCorrectionLevel.L, M, Q, H. For EncodeHintType.CHARACTER_SET the values are strings and can be Cp437, Shift_JIS and ISO-8859-1 to ISO-8859-16. You can also use UTF-8, but correct behaviour is not guaranteed as Unicode is not supported in QRCodes. The default value is ISO-8859-1. |