Package com.dynamicpdf.api.elements
Class QrCodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.Dim2BarcodeElement
com.dynamicpdf.api.elements.QrCodeElement
Represents a QR code barcode element.
-
Constructor Summary
ConstructorDescriptionQrCodeElement(byte[] value, ElementPlacement placement)
Initializes a new instance of theQrCodeElement
class.QrCodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset)
Initializes a new instance of theQrCodeElement
class.QrCodeElement(String value, ElementPlacement placement)
Initializes a new instance of theQrCodeElement
class.QrCodeElement(String value, ElementPlacement placement, float xOffset, float yOffset)
Initializes a new instance of theQrCodeElement
class. -
Method Summary
Modifier and TypeMethodDescriptiongetFnc1()
Gets FNC1 mode.int
Gets the QR code version.void
setFnc1(QrCodeFnc1 value)
Sets FNC1 mode.void
setVersion(int value)
Sets the QR code version.Methods inherited from class com.dynamicpdf.api.elements.BarcodeElement
getColor, getValue, getXDimension, setColor, setValue, setXDimension
Methods inherited from class com.dynamicpdf.api.elements.Element
getEvenPages, getOddPages, getPlacement, getResource, getTextFont, getXOffset, getYOffset, setEvenPages, setOddPages, setPlacement, setXOffset, setYOffset
-
Constructor Details
-
QrCodeElement
Initializes a new instance of theQrCodeElement
class.- Parameters:
value
- The value of the QR code.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the QR code.yOffset
- The Y coordinate of the QR code.
-
QrCodeElement
Initializes a new instance of theQrCodeElement
class.- Parameters:
value
- The value of the QR code.placement
- The placement of the barcode on the page.
-
QrCodeElement
Initializes a new instance of theQrCodeElement
class.- Parameters:
value
- The value of the QR code.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the QR code.yOffset
- The Y coordinate of the QR code.
-
QrCodeElement
Initializes a new instance of theQrCodeElement
class.- Parameters:
value
- The value of the QR code.placement
- The placement of the barcode on the page.
-
-
Method Details
-
getFnc1
Gets FNC1 mode.- Returns:
- FNC1 mode.
-
setFnc1
Sets FNC1 mode.- Parameters:
value
- FNC1 mode.
-
getVersion
public int getVersion()Gets the QR code version.- Returns:
- the QR code version.
-
setVersion
public void setVersion(int value)Sets the QR code version.- Parameters:
value
- The QR code version.
-