Use the class Barcode39 instead. It doesn't require fonts and is more configurable.
I converted the code to use the following code, but no barcode appears (or the barcode is being rendered white on white).
PdfContentByte cb = ((PdfWriter)writer).getDirectContent(); Barcode39 code39 = new Barcode39(); code39.setCode("0123456789"); code39.setStartStopText(false); Image image39 = code39.createImageWithBarcode(cb, null, null); Chunk chunk = new Chunk(image39, 0, 0);
The chunk is embedded into the cell of a table, the cell in the table is empty - the rest of the table is rendered fine.
Any ideas?
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