menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Pdf417ErrorCorrectionLevel - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Pdf417ErrorCorrectionLevel

    Specifies the Pdf417Barcode error correction level.

    Inheritance
    System.Object
    Pdf417ErrorCorrectionLevel
    Namespace: Syncfusion.Pdf.Barcode
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class Pdf417ErrorCorrectionLevel : Enum
    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

    Auto

    Auto.

    Declaration
    public const Pdf417ErrorCorrectionLevel Auto
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level0

    2 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level0
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level1

    4 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level1
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level2

    8 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level2
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level3

    16 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level3
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level4

    32 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level4
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level5

    64 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level5
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level6

    128 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level6
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level7

    256 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level7
    Field Value
    Type
    Pdf417ErrorCorrectionLevel

    Level8

    512 code words

    Declaration
    public const Pdf417ErrorCorrectionLevel Level8
    Field Value
    Type
    Pdf417ErrorCorrectionLevel
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved