Pdf - PdfQRErrorCorrectionLevel

18 Nov 20261 minute to read

Specifies the error correction level for a QR Code barcode.

// Create a new PDF document
let document: PdfDocument = new PdfDocument();
// Add a page to the document
let page: PdfPage = document.addPage();
// Create a QR barcode with quartile error correction
let barcode: PdfQRBarcode = new PdfQRBarcode('https://www.syncfusion.com');
barcode.errorCorrectionLevel = PdfQRErrorCorrectionLevel.Quartile;
barcode.draw(page, { x: 40, y: 40, width: 32, height: 32 });
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
  • High - Specifies high error correction with approximately 30 percent recovery capability.
  • Low - Specifies low error correction with approximately 7 percent recovery capability.
  • Medium - Specifies medium error correction with approximately 15 percent recovery capability.
  • Quartile - Specifies quartile error correction with approximately 25 percent recovery capability.