Enum PdfDataMatrixSize
Specifies the data matrix barcode size.
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfDataMatrixSize
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 datamatrix barcode.
PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode();
//Sets the barcode text.
datamatrix.Text = "Test";
//Set the dimention of the barcode.
datamatrix.XDimension = 5;
//Set barcode size.
datamatrix.Size = PdfDataMatrixSize.Size20x20;
//Set the barcode location.
datamatrix.Location = new PointF(100, 100);
//Draws a barcode on the new Page.
datamatrix.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 datamatrix barcode.
Dim datamatrix As New PdfDataMatrixBarcode()
'Sets the barcode text.
datamatrix.Text = "Test"
'Set the dimention of the barcode.
datamatrix.XDimension = 5
'Set barcode size.
datamatrix.Size = PdfDataMatrixSize.Size20x20
'Set the barcode location.
datamatrix.Location = New PointF(100, 100)
'Draws a barcode on the new Page.
datamatrix.Draw(page)
'Save document to disk.
document.Save("output.pdf")
'Close the document.
document.Close(True)
Fields
Name | Description |
---|---|
Auto | Size is choosen based on the data. |
Size104x104 | Square matrix with 104 rows and 104 columns. |
Size10x10 | Square matrix with 10 rows and 10 columns. |
Size120x120 | Square matrix with 120 rows and 120 columns. |
Size12x12 | Square matrix with 12 rows and 12 columns. |
Size12x26 | Rectangular matrix with 12 rows and 26 columns. |
Size12x36 | Rectangular matrix with 12 rows and 36 columns. |
Size132x132 | Square matrix with 132 rows and 132 columns. |
Size144x144 | Square matrix with 144 rows and 144 columns. |
Size14x14 | Square matrix with 14 rows and 14 columns. |
Size16x16 | Square matrix with 16 rows and 16 columns. |
Size16x36 | Rectangular matrix with 16 rows and 36 columns. |
Size16x48 | Rectangular matrix with 16 rows and 48 columns. |
Size18x18 | Square matrix with 18 rows and 18 columns. |
Size20x20 | Square matrix with 20 rows and 20 columns. |
Size22x22 | Square matrix with 22 rows and 22 columns. |
Size24x24 | Square matrix with 24 rows and 24 columns. |
Size26x26 | Square matrix with 26 rows and 26 columns. |
Size32x32 | Square matrix with 32 rows and 32 columns. |
Size36x36 | Square matrix with 36 rows and 36 columns. |
Size40x40 | Square matrix with 40 rows and 40 columns. |
Size44x44 | Square matrix with 44 rows and 44 columns. |
Size48x48 | Square matrix with 48 rows and 48 columns. |
Size52x52 | Square matrix with 52 rows and 52 columns. |
Size64x64 | Square matrix with 64 rows and 64 columns. |
Size72x72 | Square matrix with 72 rows and 72 columns. |
Size80x80 | Square matrix with 80 rows and 80 columns. |
Size88x88 | Square matrix with 88 rows and 88 columns. |
Size8x18 | Rectangular matrix with 8 rows and 18 columns. |
Size8x32 | Rectangular matrix with 8 rows and 32 columns. |
Size96x96 | Square matrix with 96 rows and 96 columns. |