barcode fonts

barcode fonts

Forum member · Dec 1, 2005
We have a custom made barcode font, but when we create the pdf we get an error. "Object reference not set to an instance of an object." But when we use an other custom font (not barcode) we don't get an error and everything works fine. TrueTypeFont barcode = new TrueTypeFont("PJC39.ttf"); page.Elements.Add(new ceTe.DynamicPDF.PageElements.Label(value, 300, 500, 100 ,10, barcode, 12)); it goes wrong when the pdf is drawn. doc.DrawToWeb( this, "name.pdf"); Are we doing something wrong?

Re: barcode fonts

Forum member · Dec 1, 2005
instead of using a true type font we now use a type 1 font. Now everything works fine. Type1Font barcode = new Type1Font("c:\\pjscode3.pfm","c:\\pjscode3.pfb");