Hi,
We need to create a 2D bar code using Data matrix and save in PDF. The 2D bar code should only have bar code (without any value in it) because while we were doing POC, we could see that content automatically bind to generated bar code. We don’t need it. Also the bar code should be placed at right top corner of PDF (setting position of bar code). So can you share us the sample code?
Hi Vigil,
Thank you for your inquiry.
Please use the following code snippet to generate DataMatix coded barcode. Setting CodeLocation to None will hide the barcode text thus creating the effect of barcode without any value in it. For details on integrating barcode with PDF and create DataMatrix barcode, visit the online documentation link given below:
Furthermore please provide more detail about POC.
CODE:
Aspose.BarCode.BarCodeBuilder builder = new Aspose.BarCode.BarCodeBuilder();
builder.SymbologyType = Aspose.BarCode.DataMatrix;
builder.CodeText = "123456789";
builder.CodeLocation = CodeLocation.None;
builder.Save("datamatrix_Test.png");
Thanks!! this was great… pls guide me to use custom ttf font in 2d barcode?
Hi Vigil,
Thank you for writing us back.
Hi,
Seems custom font is used for caption. I need to load ttf file and convert the text using that ttf. so text can be visible as barcode.
Hi Vigil,
This is to update you that custom font settings can only be applied to caption text of the barcode. Further, it is requested that you may please forward us a sample application and explain the issue that you are facing. We will look into it and update you accordingly. Also provide details about how you will load TIFF file and convert the text in the TIFF file.