Use the class Barcode39 instead. It doesn't require fonts and is more configurable.
Best Regards, Paulo Soares > -----Original Message----- > From: Graham Leggett [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 11:49 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Embedding barcode fonts - how? > > Hi all, > > I am trying to use the following code to place a barcode in my PDF > document: > > new PdfBarcode("CODE39.TTF", PdfBarcode.CODE39, 36, "0123465678") > > The above code works, but when I try and view the pdf, the barcode does > not show up because the font is not installed on that specific platform. > > According to the docs, it is possible to use BaseFont to embed a font > within the PDF. The docs for PdfBarcode do not mention anything about > using BaseFont to embed the barcode font, nor does it seem to be > possible to pass a Font or BaseFont object to PdfBarcode. > > How can I use PdfBarcode and embed the barcode font into the PDF at the > same time? > > Regards, > Graham > -- > ----------------------------------------- > [EMAIL PROTECTED] "There's a moon > over Bourbon Street > tonight..." > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions