Smaller barcode image

Hello!

I need to save PDF417 barcode in smaller format. Now it is 4535 mm, but I need it 2818 mm. My code is (sorry, I there is not time to find where to format it like code text):


BarCodeBuilder builder = new BarCodeBuilder();
builder.CodeLocation = CodeLocation.None;



builder.Resolution.Mode = ResolutionMode.Graphics;

builder.EnableChecksum = false;
builder.ImageQuality = ImageQualityMode.AntiAlias;
builder.GraphicsUnit = GraphicsUnit.Millimeter;
builder.ImageWidth = 28;
builder.ImageHeight = 18;
builder.CodeText = Guid.NewGuid().ToString(“N”);
builder.SymbologyType = Symbology.Pdf417;
builder.Save(filename, ImageFormat.Bmp);

Hi,

Please try to reduce the value of BarCodeBuilder.xDimension and yDimension properties. It would reduce the size of the generated barcode image.

Thanks, I’ve inserted BarcodeImage to Aspose.Pdf and set ImageInfo.FixHeight and FixWidth. It ever more useful for me and there’s no image quality loss.