iText for .NET barcode
问题 I try to create a PDF with a EAN13 Bar-code using the iTextSharp library. I try to generate a barcode with the value " 023942432852 ". iTextSharp.text.Image imageEAN = codeEan.CreateImageWithBarcode(cb, null, null); throws System.IndexOutOfRangeException . There is the code: Document pdfdoc = new Document(pageSize, _margSx, _margDx, _margUp, _margBo); PdfWriter writer = PdfWriter.GetInstance(pdfdoc, new FileStream(_path + @"\Barcode.pdf", FileMode.Create)); pdfdoc.Open(); PdfContentByte cb =