Package com.ironsoftware.ironpdf.stamp
Class BarcodeStamper
- java.lang.Object
-
- com.ironsoftware.ironpdf.stamp.Stamper
-
- com.ironsoftware.ironpdf.stamp.BarcodeStamper
-
-
Constructor Summary
Constructors Constructor Description BarcodeStamper(String Value, BarcodeEncoding BarcodeType)
Initializes a new instance of theBarcodeStamper
class.BarcodeStamper(String Value, BarcodeEncoding BarcodeType, int Width, int Height)
Initializes a new instance of theBarcodeStamper
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BarcodeEncoding
getBarcodeType()
Gets barcode type.int
getHeight()
Gets height.String
getValue()
Gets value.int
getWidth()
Gets width.void
setBarcodeType(BarcodeEncoding value)
Sets barcode type.void
setHeight(int value)
Sets height.void
setValue(String value)
Sets value.void
setWidth(int value)
Sets width.-
Methods inherited from class com.ironsoftware.ironpdf.stamp.Stamper
getHorizontalAlignment, getHorizontalOffset, getHtml, getHyperlink, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getRotation, getScale, getVerticalAlignment, getVerticalOffset, getWaitFor, isStampBehindContent, setHorizontalAlignment, setHorizontalOffset, setHtml, setHyperlink, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setRotation, setScale, setStampBehindContent, setVerticalAlignment, setVerticalOffset, setWaitFor
-
-
-
-
Constructor Detail
-
BarcodeStamper
public BarcodeStamper(String Value, BarcodeEncoding BarcodeType)
Initializes a new instance of theBarcodeStamper
class.Width and Height are 250px each by default unless explicitly set.
- Parameters:
Value
- The value of the barcode as a string.BarcodeType
- Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39.BarcodeEncoding
.
-
BarcodeStamper
public BarcodeStamper(String Value, BarcodeEncoding BarcodeType, int Width, int Height)
Initializes a new instance of theBarcodeStamper
class.- Parameters:
Value
- The value of the barcode as a string.BarcodeType
- Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39.BarcodeEncoding
.Width
- The width of the rendered barcode in pixels.Height
- The height of the rendered barcode in pixels.
-
-
Method Detail
-
getValue
public final String getValue()
Gets value. The value of the barcode as a string.- Returns:
- the value
-
setValue
public final void setValue(String value)
Sets value. The value of the barcode as a string.- Parameters:
value
- the value
-
getBarcodeType
public final BarcodeEncoding getBarcodeType()
Gets barcode type. Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. Please see:BarcodeEncoding
.Default is QRCode
- Returns:
- the barcode type
-
setBarcodeType
public final void setBarcodeType(BarcodeEncoding value)
Sets barcode type. Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. Please see:BarcodeEncoding
.Default is QRCode
- Parameters:
value
- the value
-
getWidth
public final int getWidth()
Gets width. The width of the rendered barcode in pixels. Default is 250px- Returns:
- the width
-
setWidth
public final void setWidth(int value)
Sets width. The width of the rendered barcode in pixels. Default is 250px- Parameters:
value
- the value
-
getHeight
public final int getHeight()
Gets height. The height of the rendered barcode in pixels. Default is 250px- Returns:
- the height
-
setHeight
public final void setHeight(int value)
Sets height. The height of the rendered barcode in pixels. Default is 250px- Parameters:
value
- the value
-
-