public final class QRCodeWriter extends Object
Constructor and Description |
---|
QRCodeWriter() |
Modifier and Type | Method and Description |
---|---|
ByteMatrix |
encode(String contents, int width, int height)
Encode a string into a QR code with dimensions width x height, using error-correction level L and the smallest version for which he contents fit into the QR-code?
|
ByteMatrix |
encode(String contents, int width, int height, Map<EncodeHintType,Object> hints)
Encode a string into a QR code with dimensions width x height.
|
public ByteMatrix encode(String contents, int width, int height) throws WriterException
contents
- String to encode into the QR code
width
- width of the QR-code
height
- height of the QR-code
WriterException
- exception is thrown in case an error occurs when encoding a barcode using the Writer framework
public ByteMatrix encode(String contents, int width, int height, Map<EncodeHintType,Object> hints) throws WriterException
contents
- String to encode into the QR code
width
- width of the QR-code
height
- height of the QR-code
hints
- Map containing suggestions for error-correction level and version
WriterException
- exception is thrown in case an error occurs when encoding a barcode using the Writer framework
Copyright © 1998–2023 iText Group NV. All rights reserved.