About us | News | Contact
iText ® Licenses Support   
You are here: Home > Forums > iText and iTextSharp Support > Creating PDF > High level objects > Fonts
User login
  • Request new password

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

AccessControlException: access denied for font in jar ›
  • Login to post comments

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 BaseFont object 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.

  • Login to post comments
Content © 2010 1T3XT BVBA