Data Matrix generator

19 Dec 20221 minute to read

Data Matrix

DataMatrix Barcode is a two dimensional barcode that consists of a grid of dark and light dots or blocks forming square or rectangular symbol. The data encoded in the barcode can either be numbers or alphanumeric. They are widely used in printed media such as labels and letters. You can read it easily with the help of a barcode reader and mobile phones.

<ejs-datamatrixgenerator id="container" width="200px" height="150px" value="Syncfusion" mode="SVG"></ejs-datamatrixgenerator>

Customizing the DataMatrix color

A page or printed media with DataMatrix often appears colorful in the background and surrounding region with other contents. In such cases, the DataMatrix can also be customized to suit the needs. You can achieve this by using the forecolor property.

<ejs-datamatrixgenerator id="container" width="200px" height="150px" value="Syncfusion" foreColor="red" mode="SVG">
</ejs-datamatrixgenerator>

Customizing the DataMatrix dimension

The dimension of the DataMatrix can be changed using the height and width property of the DataMatrix Generator.

<ejs-datamatrixgenerator id="container" width="300px" height="300px" value="Syncfusion" foreColor="red" mode="SVG"></ejs-datamatrixgenerator>

Customizing the text

In DataMatrix generators, you can customize the DataMatrix text by using the display text property.

<ejs-datamatrixgenerator id="container" width="300px" height="300px" value="Syncfusion" foreColor="red" mode="SVG">
	<e-datamatrixgenerator-displaytext visibility="false"></e-datamatrixgenerator-displaytext>
</ejs-datamatrixgenerator>

NOTE

View Sample in GitHub.