DataMatrix barcodes in a PDF

1 min read
DataMatrix barcodes in a PDF

I have had some questions about this topic and thought it a good time to post up a sample showing just how easy it is.  Please download the sample here: DataMatrix sample.

 

The WPF team made this sample and it shows how to create the DataMatrix barcode.

  String text = "TYPE 3523 - ETWS/N FE- SDFHW 06/08";
            PdfDataMatrixBarcode dataMatrixBarcode = New PdfDataMatrixBarcode(text);
            // rectangular matrix
            dataMatrixBarcode.Size = PdfDataMatrixSize.Size16x48;
            dataMatrixBarcode.XDimension = 4;
            dataMatrixBarcode.Draw(page, New PointF(25, 300));
Frame 2
App Center
Frame 4

Start your 30-day free trial

Explore 1,600+ UI components, Document SDKs, and AI-powered tools for web, desktop, and mobile apps.

Get a Free Trial