How to draw 2D-BarcodesThe code sample below draws 2D barcodes on a PDF page c# sample: PDFDocument doc = new PDFDocument("barcode.pdf"); PDFTech.Barcodes.Barcode2D.DataMatrix dataMatrix = new PDFTech.Barcodes.Barcode2D.DataMatrix("123456789 PDFTech", UnitOfMeasure.Pixel); dataMatrix.SymbolSize = PDFTech.Barcodes.DataMatrixSymbolSize.Size40X40; if (dataMatrix.IsCodeValid()) { doc.CurrentPage.Body.Add2DBarcode(dataMatrix,130, 100); } if (!doc.Save()) Console.WriteLine(doc.Error); |
PDF .NET Library for .NET Software Developers - PDF Component Library for C#, VB.NET and ASP.NET developers Copyright © PDF Technologies Inc., 2010. |