Package com.dynamicpdf.api.elements
Class DataMatrixBarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.Dim2BarcodeElement
com.dynamicpdf.api.elements.DataMatrixBarcodeElement
Represents a Data Matrix barcode element.
-
Constructor Summary
ConstructorDescriptionDataMatrixBarcodeElement(byte[] value, ElementPlacement placement)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType, DataMatrixFunctionCharacter functionCharacter)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(String value, ElementPlacement placement)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType)
Initializes a new instance of theDataMatrixBarcodeElement
classDataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType, DataMatrixFunctionCharacter functionCharacter)
Initializes a new instance of theDataMatrixBarcodeElement
class -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets whether to process tilde character.void
setProcessTilde(boolean value)
Sets whether to process tilde character.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
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType, DataMatrixFunctionCharacter functionCharacter)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.symbolSize
- The symbol size of the barcode.encodingType
- The encoding type of the barcode.functionCharacter
- The function character of the barcode.
-
DataMatrixBarcodeElement
Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.symbolSize
- The symbol size of the barcode.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(String value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.symbolSize
- The symbol size of the barcode.encodingType
- The encoding type of the barcode.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType, DataMatrixFunctionCharacter functionCharacter)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.symbolSize
- The symbol size of the barcode.encodingType
- The encoding type of the barcode.functionCharacter
- The function character of the barcode.
-
DataMatrixBarcodeElement
Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.symbolSize
- The symbol size of the barcode.
-
DataMatrixBarcodeElement
public DataMatrixBarcodeElement(byte[] value, ElementPlacement placement, float xOffset, float yOffset, DataMatrixSymbolSize symbolSize, DataMatrixEncodingType encodingType)Initializes a new instance of theDataMatrixBarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.xOffset
- The X coordinate of the barcode.yOffset
- The Y coordinate of the barcode.symbolSize
- The symbol size of the barcode.encodingType
- The encoding type of the barcode.
-
-
Method Details
-
getProcessTilde
public boolean getProcessTilde()Gets whether to process tilde character.Setting true will check for ~ character and processes it for FNC1 or ECI characters.
- Returns:
- Whether to process tilde character.
-
setProcessTilde
public void setProcessTilde(boolean value)Sets whether to process tilde character.Setting true will check for ~ character and processes it for FNC1 or ECI characters.
- Parameters:
value
- Whether to process tilde character.
-