Skip to main content
All docs
V26.1
  • PDF417OptionsBuilder Class

    Builds an PDF417Options object. Chain builder methods to configure barcode settings, then call the Build method to create the options object.

    Namespace: DevExpress.Docs.Barcode

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public class PDF417OptionsBuilder :
        BarcodeOptionsBuilder<PDF417Options, PDF417OptionsBuilder>

    Remarks

    The following code snippet creates the PDF417 barcode and specifies its settings:

    DevExpress Barcode Generator - PDF417 barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var pdf417Code = PDF417OptionsBuilder.Create()
        .WithColumns(3)
        .WithTruncateSymbol(false)
        .WithErrorCorrectionLevel(PDF417ErrorCorrectionLevel.Level2)
        .WithBackColor(Color.LightGray)
        .WithShowText(false)
        .WithPadding(5)
        .WithBorderWidth(1)
        .WithBorderColor(Color.Blue)
        .Build();
    
    var filePath = Path.GetFullPath("pdf417_barcode.png");
    
    using var stream = new FileStream(filePath, FileMode.Create);
    using var generator = new BarcodeGenerator(pdf417Code);
    generator.Export("PDF417 DEMO 1234567890", stream, DXImageFormat.Png);
    
    See Also