Class PdfDataMatrixSize
Specifies the data matrix barcode size.
Inheritance
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfDataMatrixSize : 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 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
Auto
Size is choosen based on the data.
Declaration
public const PdfDataMatrixSize Auto
Field Value
Type |
---|
PdfDataMatrixSize |
Size104x104
Square matrix with 104 rows and 104 columns.
Declaration
public const PdfDataMatrixSize Size104x104
Field Value
Type |
---|
PdfDataMatrixSize |
Size10x10
Square matrix with 10 rows and 10 columns.
Declaration
public const PdfDataMatrixSize Size10x10
Field Value
Type |
---|
PdfDataMatrixSize |
Size120x120
Square matrix with 120 rows and 120 columns.
Declaration
public const PdfDataMatrixSize Size120x120
Field Value
Type |
---|
PdfDataMatrixSize |
Size12x12
Square matrix with 12 rows and 12 columns.
Declaration
public const PdfDataMatrixSize Size12x12
Field Value
Type |
---|
PdfDataMatrixSize |
Size12x26
Rectangular matrix with 12 rows and 26 columns.
Declaration
public const PdfDataMatrixSize Size12x26
Field Value
Type |
---|
PdfDataMatrixSize |
Size12x36
Rectangular matrix with 12 rows and 36 columns.
Declaration
public const PdfDataMatrixSize Size12x36
Field Value
Type |
---|
PdfDataMatrixSize |
Size132x132
Square matrix with 132 rows and 132 columns.
Declaration
public const PdfDataMatrixSize Size132x132
Field Value
Type |
---|
PdfDataMatrixSize |
Size144x144
Square matrix with 144 rows and 144 columns.
Declaration
public const PdfDataMatrixSize Size144x144
Field Value
Type |
---|
PdfDataMatrixSize |
Size14x14
Square matrix with 14 rows and 14 columns.
Declaration
public const PdfDataMatrixSize Size14x14
Field Value
Type |
---|
PdfDataMatrixSize |
Size16x16
Square matrix with 16 rows and 16 columns.
Declaration
public const PdfDataMatrixSize Size16x16
Field Value
Type |
---|
PdfDataMatrixSize |
Size16x36
Rectangular matrix with 16 rows and 36 columns.
Declaration
public const PdfDataMatrixSize Size16x36
Field Value
Type |
---|
PdfDataMatrixSize |
Size16x48
Rectangular matrix with 16 rows and 48 columns.
Declaration
public const PdfDataMatrixSize Size16x48
Field Value
Type |
---|
PdfDataMatrixSize |
Size18x18
Square matrix with 18 rows and 18 columns.
Declaration
public const PdfDataMatrixSize Size18x18
Field Value
Type |
---|
PdfDataMatrixSize |
Size20x20
Square matrix with 20 rows and 20 columns.
Declaration
public const PdfDataMatrixSize Size20x20
Field Value
Type |
---|
PdfDataMatrixSize |
Size22x22
Square matrix with 22 rows and 22 columns.
Declaration
public const PdfDataMatrixSize Size22x22
Field Value
Type |
---|
PdfDataMatrixSize |
Size24x24
Square matrix with 24 rows and 24 columns.
Declaration
public const PdfDataMatrixSize Size24x24
Field Value
Type |
---|
PdfDataMatrixSize |
Size26x26
Square matrix with 26 rows and 26 columns.
Declaration
public const PdfDataMatrixSize Size26x26
Field Value
Type |
---|
PdfDataMatrixSize |
Size32x32
Square matrix with 32 rows and 32 columns.
Declaration
public const PdfDataMatrixSize Size32x32
Field Value
Type |
---|
PdfDataMatrixSize |
Size36x36
Square matrix with 36 rows and 36 columns.
Declaration
public const PdfDataMatrixSize Size36x36
Field Value
Type |
---|
PdfDataMatrixSize |
Size40x40
Square matrix with 40 rows and 40 columns.
Declaration
public const PdfDataMatrixSize Size40x40
Field Value
Type |
---|
PdfDataMatrixSize |
Size44x44
Square matrix with 44 rows and 44 columns.
Declaration
public const PdfDataMatrixSize Size44x44
Field Value
Type |
---|
PdfDataMatrixSize |
Size48x48
Square matrix with 48 rows and 48 columns.
Declaration
public const PdfDataMatrixSize Size48x48
Field Value
Type |
---|
PdfDataMatrixSize |
Size52x52
Square matrix with 52 rows and 52 columns.
Declaration
public const PdfDataMatrixSize Size52x52
Field Value
Type |
---|
PdfDataMatrixSize |
Size64x64
Square matrix with 64 rows and 64 columns.
Declaration
public const PdfDataMatrixSize Size64x64
Field Value
Type |
---|
PdfDataMatrixSize |
Size72x72
Square matrix with 72 rows and 72 columns.
Declaration
public const PdfDataMatrixSize Size72x72
Field Value
Type |
---|
PdfDataMatrixSize |
Size80x80
Square matrix with 80 rows and 80 columns.
Declaration
public const PdfDataMatrixSize Size80x80
Field Value
Type |
---|
PdfDataMatrixSize |
Size88x88
Square matrix with 88 rows and 88 columns.
Declaration
public const PdfDataMatrixSize Size88x88
Field Value
Type |
---|
PdfDataMatrixSize |
Size8x18
Rectangular matrix with 8 rows and 18 columns.
Declaration
public const PdfDataMatrixSize Size8x18
Field Value
Type |
---|
PdfDataMatrixSize |
Size8x32
Rectangular matrix with 8 rows and 32 columns.
Declaration
public const PdfDataMatrixSize Size8x32
Field Value
Type |
---|
PdfDataMatrixSize |
Size96x96
Square matrix with 96 rows and 96 columns.
Declaration
public const PdfDataMatrixSize Size96x96
Field Value
Type |
---|
PdfDataMatrixSize |