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
ConstructorsConstructorDescriptionQrCodeElement(byte[] value, ElementPlacement placement)Initializes a new instance of theQrCodeElementclass.QrCodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset)Initializes a new instance of theQrCodeElementclass.QrCodeElement(String value, ElementPlacement placement)Initializes a new instance of theQrCodeElementclass.QrCodeElement(String value, ElementPlacement placement, float xOffset, float yOffset)Initializes a new instance of theQrCodeElementclass. - 
Method Summary
Modifier and TypeMethodDescriptiongetFnc1()Gets FNC1 mode.intGets the QR code version.voidsetFnc1(QrCodeFnc1 value)Sets FNC1 mode.voidsetVersion(int value)Sets the QR code version.Methods inherited from class com.dynamicpdf.api.elements.BarcodeElement
getColor, getValue, getXDimension, setColor, setValue, setXDimensionMethods 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 theQrCodeElementclass.- 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 theQrCodeElementclass.- Parameters:
 value- The value of the QR code.placement- The placement of the barcode on the page.
 - 
QrCodeElement
Initializes a new instance of theQrCodeElementclass.- 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 theQrCodeElementclass.- 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.
 
 -