ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum Pdf417ErrorCorrectionLevel - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum Pdf417ErrorCorrectionLevel

    Specifies the Pdf417Barcode error correction level.

    Namespace: Syncfusion.Pdf.Barcode
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum Pdf417ErrorCorrectionLevel
    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Creates a new page and adds it as the last page of the document
    PdfPage page = document.Pages.Add();
    //Creates a new Pdf417Barcode.
    Pdf417Barcode pdf417Barcode = new Pdf417Barcode();
    //Set text.
    pdf417Barcode.Text = "012345678";
    //Set barcode size.
    pdf417Barcode.Size = new SizeF(200, 200);
    //Set the error correction level.
    pdf417Barcode.ErrorCorrectionLevel = Pdf417ErrorCorrectionLevel.Auto;
    //Set the dimention of the barcode.
    pdf417Barcode.XDimension = 3;
    //Set the barcode location.
    pdf417Barcode.Location = new PointF(100, 100);
    //Draw the barcode to PDF page.
    pdf417Barcode.Draw(page);
    //Save document to disk.
    document.Save("output.pdf");
    //Close the document.
    document.Close(true);
    'Create a new PDF document.
    Dim document As New PdfDocument()
    'Creates a new page and adds it as the last page of the document
    Dim page As PdfPage = document.Pages.Add()
    'Creates a new Pdf417Barcode.
    Dim pdf417Barcode As New Pdf417Barcode()
    'Set text.
    pdf417Barcode.Text = "012345678"
    'Set barcode size.
    pdf417Barcode.Size = New SizeF(200, 200)
    'Set the error correction level.
    pdf417Barcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High
    'Set the dimention of the barcode.
    pdf417Barcode.XDimension = 5
    'Set the barcode location.
    pdf417Barcode.Location = New PointF(100, 100)
    'Draw the barcode to PDF page.
    pdf417Barcode.Draw(page)
    'Save document to disk.
    document.Save("output.pdf")
    'Close the document.
    document.Close(True)

    Fields

    Name Description
    Auto

    Auto.

    Level0

    2 code words

    Level1

    4 code words

    Level2

    8 code words

    Level3

    16 code words

    Level4

    32 code words

    Level5

    64 code words

    Level6

    128 code words

    Level7

    256 code words

    Level8

    512 code words

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved