Package com.ironsoftware.ironpdf.stamp
Class BarcodeStamper
java.lang.Object
com.ironsoftware.ironpdf.stamp.Stamper
com.ironsoftware.ironpdf.stamp.BarcodeStamper
Allows the developers to add Barcode(s) and QR code(s) to PDF documents elegantly and easily.
 
An implementation of Stamper.
- 
Constructor SummaryConstructorsConstructorDescriptionBarcodeStamper(String Value, BarcodeEncoding BarcodeType) Initializes a new instance of theBarcodeStamperclass.BarcodeStamper(String Value, BarcodeEncoding BarcodeType, int Width, int Height) Initializes a new instance of theBarcodeStamperclass.
- 
Method SummaryModifier and TypeMethodDescriptionfinal BarcodeEncodingGets barcode type.final intGets height.final StringgetValue()Gets value.final intgetWidth()Gets width.final voidsetBarcodeType(BarcodeEncoding value) Sets barcode type.final voidsetHeight(int value) Sets height.final voidSets value.final voidsetWidth(int value) Sets width.Methods inherited from class com.ironsoftware.ironpdf.stamp.StampergetHorizontalAlignment, getHorizontalOffset, getHtml, getHyperlink, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getRotation, getScale, getVerticalAlignment, getVerticalOffset, isStampBehindContent, setHorizontalAlignment, setHorizontalOffset, setHtml, setHyperlink, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setRotation, setScale, setStampBehindContent, setVerticalAlignment, setVerticalOffset
- 
Constructor Details- 
BarcodeStamperInitializes a new instance of theBarcodeStamperclass.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.
 
- 
BarcodeStamperInitializes a new instance of theBarcodeStamperclass.- 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 Details- 
getValueGets value. The value of the barcode as a string.- Returns:
- the value
 
- 
setValueSets value. The value of the barcode as a string.- Parameters:
- value- the value
 
- 
getBarcodeTypeGets 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
 
- 
setBarcodeTypeSets 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
 
- 
getWidthpublic final int getWidth()Gets width. The width of the rendered barcode in pixels. Default is 250px- Returns:
- the width
 
- 
setWidthpublic final void setWidth(int value) Sets width. The width of the rendered barcode in pixels. Default is 250px- Parameters:
- value- the value
 
- 
getHeightpublic final int getHeight()Gets height. The height of the rendered barcode in pixels. Default is 250px- Returns:
- the height
 
- 
setHeightpublic final void setHeight(int value) Sets height. The height of the rendered barcode in pixels. Default is 250px- Parameters:
- value- the value
 
 
-