Hello,
We have a client who asked us to generate a Pdf417 barcode with the smallest dimensions as possible
I’m using Aspose.Barcode for .NET 4.0, version 18.1.0.0
And this piece of code :
{
Aspose.BarCode.License license = new Aspose.BarCode.License();
license.SetLicense(“Aspose.Total.lic”);
BarCodeBuilder barcodeBuilder = new BarCodeBuilder(barcode, EncodeTypes.Pdf417);
barcodeBuilder.CodeTextAlignment = System.Drawing.StringAlignment.Far;
barcodeBuilder.CodeLocation = CodeLocation.None;
barcodeBuilder.CodeTextFont = new System.Drawing.Font(barcodeBuilder.CodeTextFont.FontFamily, fontSize);
barcodeBuilder.Pdf417CompactionMode = Pdf417CompactionMode.Text;
barcodeBuilder.Pdf417ErrorLevel = Pdf417ErrorLevel.Level0;
barcodeBuilder.Pdf417Truncate = false;
barcodeBuilder.Margins.Set(0);
barcodeBuilder.CaptionBelow = new Caption() { Text = label, TextAlign = System.Drawing.StringAlignment.Far, Visible = true };
barcodeBuilder.GraphicsUnit = GraphicsUnit.Pixel;
return barcodeBuilder.GetCustomSizeBarCodeImage(width, height, false);
}
when I generate a label for text : 39980663|23550820||3765542|||||||||False|True|False|True||13/03/2020||1326734|
I get something like aspose_barcode2.png (3.6 KB)
If I set the barcode to be smaller, it gets hard to read (with a scanner). I played with AspectRatio, AutoSize, Rows but I didn’t get an acceptable result.
Our client send us a barcode generated for the same text: PDF417
If I compare this barcode with barcode generated with Aspose, I see that aspose barcode is more “complex”, it has more information on it I suppose.
My question is, what can I set to have a barcode with less extra info in it, so I can make it smaller and still to be very easy/fast to read ?