Package com.dynamicpdf.api.elements
Class Pdf417BarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.Dim2BarcodeElement
com.dynamicpdf.api.elements.Pdf417BarcodeElement
Represents Pdf417 barcode element.
This class can be used to generate Pdf417 barcode symbol.
-
Constructor Summary
ConstructorDescriptionPdf417BarcodeElement(byte[] value, ElementPlacement placement, int columns)
Initializes a new instance of thePdf417BarcodeElement
class.Pdf417BarcodeElement(byte[] value, ElementPlacement placement, int columns, float xOffset, float yOffset)
Initializes a new instance of thePdf417BarcodeElement
class.Pdf417BarcodeElement(String value, ElementPlacement placement, int columns)
Initializes a new instance of thePdf417BarcodeElement
class.Pdf417BarcodeElement(String value, ElementPlacement placement, int columns, float xOffset, float yOffset)
Initializes a new instance of thePdf417BarcodeElement
class. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the columns of the barcode.Gets the type of compaction.boolean
Gets the Compact Pdf417.Gets the error correction level for the PDF417 barcode.boolean
Gets a boolean indicating whether to process the tilde character.float
Gets the YDimension of the barcode.void
setColumns(int value)
Sets the columns of the barcode.void
setCompaction(Compaction value)
Sets the type of compaction.void
setCompactPdf417(boolean value)
Sets the Compact Pdf417.void
setErrorCorrection(ErrorCorrection value)
Sets the error correction level for the PDF417 barcode.void
setProcessTilde(boolean value)
Sets a boolean indicating whether to process the tilde character.void
setYDimension(float value)
Sets the YDimension of the barcode.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
-
Pdf417BarcodeElement
public Pdf417BarcodeElement(String value, ElementPlacement placement, int columns, float xOffset, float yOffset)Initializes a new instance of thePdf417BarcodeElement
class.- Parameters:
value
- String to be encoded.placement
- The placement of the barcode on the page.columns
- >Columns of the PDF417 barcode.xOffset
- The X coordinate of the PDF417 barcode.yOffset
- The Y coordinate of the PDF417 barcode.
-
Pdf417BarcodeElement
Initializes a new instance of thePdf417BarcodeElement
class.- Parameters:
value
- String to be encoded.placement
- The placement of the barcode on the page.columns
- >Columns of the PDF417 barcode.
-
Pdf417BarcodeElement
public Pdf417BarcodeElement(byte[] value, ElementPlacement placement, int columns, float xOffset, float yOffset)Initializes a new instance of thePdf417BarcodeElement
class.- Parameters:
value
- String to be encoded.placement
- The placement of the barcode on the page.columns
- >Columns of the PDF417 barcode.xOffset
- The X coordinate of the PDF417 barcode.yOffset
- The Y coordinate of the PDF417 barcode.
-
Pdf417BarcodeElement
Initializes a new instance of thePdf417BarcodeElement
class.- Parameters:
value
- String to be encoded.placement
- The placement of the barcode on the page.columns
- >Columns of the PDF417 barcode.
-
-
Method Details
-
getColumns
public int getColumns()Gets the columns of the barcode.- Returns:
- The columns of the barcode.
-
setColumns
public void setColumns(int value)Sets the columns of the barcode.- Parameters:
value
- The columns of the barcode.
-
getYDimension
public float getYDimension()Gets the YDimension of the barcode.- Returns:
- The YDimension of the barcode.
-
setYDimension
public void setYDimension(float value)Sets the YDimension of the barcode.- Parameters:
value
- The YDimension of the barcode.
-
getProcessTilde
public boolean getProcessTilde()Gets a boolean indicating whether to process the tilde character.- Returns:
- A boolean indicating whether to process the tilde character.
-
setProcessTilde
public void setProcessTilde(boolean value)Sets a boolean indicating whether to process the tilde character.- Parameters:
value
- A boolean indicating whether to process the tilde character.
-
getCompactPdf417
public boolean getCompactPdf417()Gets the Compact Pdf417.- Returns:
- The Compact Pdf417.
-
setCompactPdf417
public void setCompactPdf417(boolean value)Sets the Compact Pdf417.- Parameters:
value
- The Compact Pdf417.
-
getErrorCorrection
Gets the error correction level for the PDF417 barcode.- Returns:
- Returns a
ErrorCorrection
object.
-
setErrorCorrection
Sets the error correction level for the PDF417 barcode.- Parameters:
value
- The error correction level for the PDF417 barcode.
-
getCompaction
Gets the type of compaction.- Returns:
- a
Compaction
object.
-
setCompaction
Sets the type of compaction.- Parameters:
value
- The type of compaction.
-