Hi,
I’m trying to generate the following text as my codetext:
“HRVHUB30
HRK
000000000120931
ZIS INFORMATICKI OBRT
Kruge 43
10000 Zagreb
VIPnet d.o.o.
Vrtni Put 1
10000 Zagreb
HR6523300031100205901”
but the output i get is
full of random characters
when I run the same code for smaller codetext like: “Hello World”, everything turns out as expected
please help,
ChenChi
@ChenChi13,
We have investigated the issue. We are unable to reproduce the issue. Sample generated barcode image is attached for your reference along with the code snippet. Please it at your end.
CODE:
string sBarCodeText = @"HRVHUB30
HRK
000000000120931
ZIS INFORMATICKI OBRT
Kruge 43
10000 Zagreb
VIPnet d.o.o.
Vrtni Put 1
10000 Zagreb
HR6523300031100205901";
Aspose.BarCode.BarCodeBuilder generator = new Aspose.BarCode.BarCodeBuilder(sBarCodeText, Aspose.BarCode.Generation.EncodeTypes.Pdf417);
generator.AutoSize = true;
generator.CodeLocation = Aspose.BarCode.CodeLocation.Below;
generator.Save(@"test_pdf417.jpeg", Aspose.BarCode.BarCodeImageFormat.Jpeg);
test_pdf417.jpeg (80.2 KB)
@ikram.haq,
I solved my issue by changing the height and width,
AutoSize = true didn’t work for me…
I changed xDimension, yDimension from 1.2f and 0.6f to 1.4f and 0.7f and now it’s good,
thanks for the hint
barCodeBuilder = new BarCodeBuilder(codeText, EncodeTypes.Pdf417)
{
// Set width and height
xDimension = 1.4f,
yDimension = 0.7f
};
@ChenChi13,
Thank you for update. It is good to know that the issue has been resolved.