barcode font
Submitted by Jiujing Gu on Thu, 06/09/2011 - 14:51
Hi,
I just got my book and haven't learned a thing yet.
But I'm eager to know if I could incude barcode in the pdf files using iText.
Thanks in advance.
Jiujing Gu
- Login to post comments
Content © 2010 1T3XT BVBA

Avoid using a barcode font
Submitted by Bruno Lowagie on Thu, 06/09/2011 - 16:50.If you want to use a barcode font, please read Chapters 2 and 11.
You need to create a
BaseFontobject and draw text using that font.However: barcode fonts have their limitations.
A better way to draw barcodes, is by using iText own Barcode classes. There's a barcode example in chapter 10, and if you own the paper book, make sure you download the first edition and read Appendix B of the first book.