Search Results for

    Show / Hide Table of Contents

    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: ApplyStamp(Stamper)

    To see usage and an example of BarcodeStamper, visit: https://ironpdf.com/tutorials/csharp-edit-pdf-complete-tutorial/#stamp-a-barcode-onto-a-pdf

    Inheritance
    System.Object
    Stamper
    BarcodeStamper
    Inherited Members
    Stamper.Html
    Stamper.Opacity
    Stamper.Rotation
    Stamper.HorizontalAlignment
    Stamper.VerticalAlignment
    Stamper.HorizontalOffset
    Stamper.VerticalOffset
    Stamper.MaxWidth
    Stamper.MaxHeight
    Stamper.MinWidth
    Stamper.MinHeight
    Stamper.Hyperlink
    Stamper.Scale
    Stamper.IsStampBehindContent
    Stamper.WaitFor
    Stamper.Timeout
    Stamper.IsStampAnnotation
    Namespace: IronPdf.Editing
    Assembly: IronPdf.dll
    Syntax
    public class BarcodeStamper : Stamper

    Constructors

    BarcodeStamper(String, BarcodeEncoding)

    Initializes a new instance of the BarcodeStamper class.

    Width and Height are 250px each by default unless explicitly set.

    Declaration
    public BarcodeStamper(string Value, BarcodeEncoding BarcodeType)
    Parameters
    Type Name Description
    System.String Value

    The value of the barcode as a string.

    BarcodeEncoding BarcodeType

    Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. BarcodeEncoding.

    BarcodeStamper(String, BarcodeEncoding, Int32, Int32)

    Initializes a new instance of the BarcodeStamper class.

    Declaration
    public BarcodeStamper(string Value, BarcodeEncoding BarcodeType, int Width, int Height)
    Parameters
    Type Name Description
    System.String Value

    The value of the barcode as a string.

    BarcodeEncoding BarcodeType

    Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. BarcodeEncoding.

    System.Int32 Width

    The width of the rendered barcode in pixels.

    System.Int32 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: BarcodeEncoding.

    Default is QRCode

    Declaration
    public BarcodeEncoding BarcodeType { get; set; }
    Property Value
    Type Description
    BarcodeEncoding

    Height

    The height of the rendered barcode in pixels. Default is 250px

    Declaration
    public int Height { get; set; }
    Property Value
    Type Description
    System.Int32

    Value

    The value of the barcode as a string.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    Width

    The width of the rendered barcode in pixels. Default is 250px

    Declaration
    public int Width { get; set; }
    Property Value
    Type Description
    System.Int32

    Inherited members

    Html
    Opacity
    Rotation
    HorizontalAlignment
    VerticalAlignment
    HorizontalOffset
    VerticalOffset
    MaxWidth
    MaxHeight
    MinWidth
    MinHeight
    Hyperlink
    Scale
    IsStampBehindContent
    WaitFor
    Timeout
    IsStampAnnotation
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.