Pdf - PdfBarcodeSymbology
18 Nov 20261 minute to read
Specifies the symbology of a barcode form field.
// Create a new PDF document
let document: PdfDocument = new PdfDocument();
// Add a new page
let page: PdfPage = document.addPage();
// Create a QR code barcode field
let field: PdfBarcodeField = new PdfBarcodeField(page, 'barcode', {x: 10, y: 10, width: 100, height: 100}, {
barcodeOptions: {symbology: PdfBarcodeSymbology.QR}
});
// Add the field to the form
document.form.add(field);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
DataMatrix- Specifies the Data Matrix symbology. -
PDF417- Specifies the PDF417 symbology. This is the default. -
QR- Specifies the QR Code symbology.