Class BarcodeStamper
This allows the user to edit an existing PDF by adding Barcode(s) and QR code(s) to PDF documents.
A subclass of Stamper. Defines a Barcode PDF Stamper. Can be applied with: ApplyTo see usage and an example of BarcodeStamper, visit: https://ironpdf.com/tutorials/csharp-edit-pdf-complete-tutorial/#stamp-a-barcode-onto-a-pdf
Inherited Members
Namespace: IronPdf.Editing
Assembly: IronPdf.dll
Syntax
public class BarcodeStamper : Stamper
Constructors
BarcodeStamper(String, BarcodeEncoding)
Initializes a new instance of the Barcode
Width and Height are 250px each by default unless explicitly set.
Declaration
public BarcodeStamper(string Value, BarcodeEncoding BarcodeType)
Parameters
Type | Name | Description |
---|---|---|
System. |
Value | The value of the barcode as a string. |
Barcode |
BarcodeType | Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39.
Barcode |
BarcodeStamper(String, BarcodeEncoding, Int32, Int32)
Initializes a new instance of the Barcode
Declaration
public BarcodeStamper(string Value, BarcodeEncoding BarcodeType, int Width, int Height)
Parameters
Type | Name | Description |
---|---|---|
System. |
Value | The value of the barcode as a string. |
Barcode |
BarcodeType | Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39.
Barcode |
System. |
Width | The width of the rendered barcode in pixels. |
System. |
Height | The height of the rendered barcode in pixels. |
Properties
BarcodeType
Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. Please see: Barcode
Default is QRCode
Declaration
public BarcodeEncoding BarcodeType { get; set; }
Property Value
Type | Description |
---|---|
Barcode |
Height
The height of the rendered barcode in pixels. Default is 250px
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System. |
Value
The value of the barcode as a string.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System. |
Width
The width of the rendered barcode in pixels. Default is 250px
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System. |