Enum QRCodeVersion
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum QRCodeVersion
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 QR barcode version.
qrBarcode.Version = QRCodeVersion.Version05;
//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 QR barcode version.
qrBarcode.Version = QRCodeVersion.Version05
'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 |
---|---|
Auto | Specifies the default version. |
Version01 | Specifies version 1 (21x21 modules). |
Version02 | Specifies version 2 (25x25 modules). |
Version03 | Specifies version 3 (29x29 modules). |
Version04 | Specifies version 4 (33x33 modules). |
Version05 | Specifies version 5 (37x37 modules). |
Version06 | Specifies version 6 (41x41 modules). |
Version07 | Specifies version 7 (45x45 modules). |
Version08 | Specifies version 8 (49x49 modules). |
Version09 | Specifies version 9 (53x53 modules). |
Version10 | Specifies version 10 (57x57 modules). |
Version11 | Specifies version 11 (61x61 modules). |
Version12 | Specifies version 12 (65x65 modules). |
Version13 | Specifies version 13 (69x69 modules). |
Version14 | Specifies version 14 (73x73 modules). |
Version15 | Specifies version 15 (77x77 modules). |
Version16 | Specifies version 16 (81x81 modules). |
Version17 | Specifies version 17 (85x85 modules). |
Version18 | Specifies version 18 (89x89 modules). |
Version19 | Specifies version 19 (93x93 modules). |
Version20 | Specifies version 20 (97x97 modules). |
Version21 | Specifies version 21 (101x101 modules). |
Version22 | Specifies version 22 (105x105 modules). |
Version23 | Specifies version 23 (109x109 modules). |
Version24 | Specifies version 24 (113x113 modules). |
Version25 | Specifies version 25 (117x117 modules). |
Version26 | Specifies version 26 (121x121 modules). |
Version27 | Specifies version 27 (125x125 modules). |
Version28 | Specifies version 28 (129x129 modules). |
Version29 | Specifies version 29 (133x133 modules). |
Version30 | Specifies version 30 (137x137 modules). |
Version31 | Specifies version 31 (141x141 modules). |
Version32 | Specifies version 32 (145x145 modules). |
Version33 | Specifies version 33 (149x149 modules). |
Version34 | Specifies version 34 (153x153 modules). |
Version35 | Specifies version 35 (157x157 modules). |
Version36 | Specifies version 36 (161x161 modules). |
Version37 | Specifies version 37 (165x165 modules). |
Version38 | Specifies version 38 (169x169 modules). |
Version39 | Specifies version 39 (173x173 modules). |
Version40 | Specifies version 40 (177x177 modules). |