- Code: Select all
PdfCode128CBarcode barcode1 = new PdfCode128CBarcode(strOrderNumber.Trim());
barcode1.BarcodeToTextGapHeight = 3f;
barcode1.BarHeight = 40;
barcode1.NarrowBarWidth = .8f; //width setup.
barcode1.TextDisplayLocation = TextLocation.Bottom;
barcode1.Draw(page, new PointF(x, y));
By the way, I'm on the latest version 4.4.11.