I'm using itext to generate a PDF document using a true type font for BarCode128. The problem is that the start and stop characters are not printed. The text is: "‰A)'=_Xwè!-Wè>èè1F0èBÀ~UŠ" It corresponds to the string 33090729635687000113550030000017381600349594 converted to Barcode 128. It is a valid string since I see it OK in Word and and browser and any several kind of editors. Why I cant see it ok the barcode generated using itext?.
I uploaded the barcode 128 here http://www.usaupload.net/d/5qpza92olsd This is the code: Rectangle pageSize = new Rectangle(780, 525); Document document = new Document(pageSize); PdfWriter writer = PdfWriter.GetInstance(document, File.OpenWrite("Test.pdf")); document.Open(); PdfContentByte cb = writer.DirectContent; BaseFont bf = BaseFont.CreateFont(@"C:\WINDOWS\Fonts\bcode128.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); cb.SetFontAndSize(bf, 50); cb.BeginText(); cb.ShowTextAligned(Element.ALIGN_CENTER, "‰A)'=_Xwè!-Wè>èè1F0èBÀ~UŠ", 200, 400, 0f); cb.EndText(); document.Close(); Regards, Claudia. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
