I am doing a project using your prestigious product. I have to print the GS1Datamatrix using aspose.net on pre-printed labels. The space provided on pre-printed labels is very calculated. Please advise how I can print such labels with high accuracy
I have observed the issue shared by you and request you to please share which product you are using on your end along with information about source file, generated output and used sample code. We will be able to investigate the issue further on our end on provision of requested information.
I am very thankful for your prompt response. I am using Aspose.net barcode. I have to print barcode on very specific location on pre-printed labels. I am attaching sample file for pre-printed label.Problem.png (8.4 KB)
You can create a PDF file according to the dimensions of the document and position the Barcode image on the document using Aspose.PDF for .NET API. Given below is the sample code snippet that you can use to generate the document. Please modify the height and width according to the actual document.
Dim doc As Aspose.Pdf.Document = New Aspose.Pdf.Document()
Dim page As Aspose.Pdf.Page = doc.Pages.Add()
page.PageInfo.Height = 3 * 72
page.PageInfo.Width = 7 * 72
page.PageInfo.Margin = New Aspose.Pdf.MarginInfo(2 * 72, .5 * 72, .2 * 72, .5 * 72)
Dim BarCodeImage As Aspose.Pdf.Image = New Aspose.Pdf.Image()
BarCodeImage.File = "TestGS1DataMatrix.png"
BarCodeImage.FixHeight = 2 * 72
BarCodeImage.FixWidth = 4 * 72
page.Paragraphs.Add(BarCodeImage)
doc.Save("TestGS1DataMatrix.pdf")
Furthermore, to generate Barcode with specified dimensions, you can use the code snippet provided on the link given below. Units based Barcode Generation
We hope that this answered your question. In case our understanding of your requirements is not correct, please share a bit more details so that we can assist you further.
Thanks for your quick support. I am sorry that I might not communicate my issue properly to you. Actually, I have to print the GS1Datamatrix directly, (Without saving it as PNG or BMP using builder.print). The Space, where I have to print GS1Datamatrix, is very calculated (I am attaching Sample FIle). For printing precisely, Page Size, Margins etc should be set to get the job done. I am expecting to get help on setting page size, margins, Human Readable Text settings etc. Please help me in sorting this issue.