Class PdfErrorCorrectionLevel
Inheritance
System.Object
PdfErrorCorrectionLevel
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfErrorCorrectionLevel : 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 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
High
The Recovery capacity is 30%(approx.)
Declaration
public const PdfErrorCorrectionLevel High
Field Value
Type |
---|
PdfErrorCorrectionLevel |
Low
The Recovery capacity is 7%(approx.)
Declaration
public const PdfErrorCorrectionLevel Low
Field Value
Type |
---|
PdfErrorCorrectionLevel |
Medium
The Recovery capacity is 15%(approx.)
Declaration
public const PdfErrorCorrectionLevel Medium
Field Value
Type |
---|
PdfErrorCorrectionLevel |
Quartile
The Recovery capacity is 25%(approx.)
Declaration
public const PdfErrorCorrectionLevel Quartile
Field Value
Type |
---|
PdfErrorCorrectionLevel |