Page 1 of 1

Write barcode with text below

Posted: Mon Jan 30, 2023 8:43 am
by username77
I'm using this example in c# to write on pdf directly but i dont see an option to write the string "0123456789" below the barcode
gdpicturePDF.DrawBarcode1D(Barcode1DWriterType.Barcode1DWriterCode128, "0123456789", 10, 5, 30, 8, System.Drawing.Color.DarkBlue);

Is able gdpicture to write this string like in this example:
https://www.computalabel.com/Images/C128.png

Thanks

Re: Write barcode with text below

Posted: Tue Jan 31, 2023 3:51 pm
by Hugo
Hi there,

Thanks for your question!

Regarding this, the number below the barcode is merely a translation of the value stored within the barcode. Is this correct in your case?
If so, you should already know this string value OR you can read this directly from the barcode itself using our Barcode reading methods.

Now that you have this value on your end you can draw this string underneath the barcode as you wish using this method for example:
https://www.gdpicture.com/guides/gdpict ... wText.html

Let me know if this is not what you want to do.

Regards,
Hugo Cudd
Technical Support