WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfErrorCorrectionLevel - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfErrorCorrectionLevel

    Namespace: Syncfusion.Pdf.Barcode
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfErrorCorrectionLevel
    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 PDF QR barcode.
    PdfQRBarcode qrBarcode = new PdfQRBarcode();
    //Set text.
    qrBarcode.Text = "012345678";
    //Set barcode size.
    qrBarcode.Size = new SizeF(200, 200);
    //Set the error correction level.
    qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High;
    //Set the dimention of the barcode.
    qrBarcode.XDimension = 5;
    //Set the barcode location.
    qrBarcode.Location = new PointF(100, 100);
    //Draw the barcode to PDF page.
    qrBarcode.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 PDF QR barcode.
    Dim qrBarcode As New PdfQRBarcode()
    'Set text.
    qrBarcode.Text = "012345678"
    'Set barcode size.
    qrBarcode.Size = New SizeF(200, 200)
    'Set the error correction level.
    qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High
    'Set the dimention of the barcode.
    qrBarcode.XDimension = 5
    'Set the barcode location.
    qrBarcode.Location = New PointF(100, 100)
    'Draw the barcode to PDF page.
    qrBarcode.Draw(page)
    'Save document to disk.
    document.Save("output.pdf")
    'Close the document.
    document.Close(True)

    Fields

    Name Description
    High

    The Recovery capacity is 30%(approx.)

    Low

    The Recovery capacity is 7%(approx.)

    Medium

    The Recovery capacity is 15%(approx.)

    Quartile

    The Recovery capacity is 25%(approx.)

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