Some barcodes may have text associated with it and if you got that error it means that all the built-in fonts are not accessible. These fonts are accessed as resources in the package com.lowagie.text.pdf.fonts. Why tomcat can't find them, I don't know, I'm sure others also use tomcat and Linux.
Best Regards, Paulo Soares > -----Original Message----- > From: Dennis Meyer [SMTP:[EMAIL PROTECTED] > Sent: Thursday, July 03, 2003 12:55 > To: [EMAIL PROTECTED] > Subject: [iText-questions] BARCODE: > com.lowagie.text.DocumentException: Helvetica not found as resource > > Hi, > > I'm using iText with the 128Barcode. It's a littlebit strange, but I get > the > following Exception: > > Helvetica not found as resource. (The *.afm files must exist as resources > in > the package com.lowagie.text.pdf.fonts) > ExceptionConverter: com.lowagie.text.DocumentException: Helvetica not > found > as resource. (The *.afm files must exist as resources in the package > com.lowagie.text.pdf.fonts) > at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source) > at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) > at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) > at com.lowagie.text.pdf.Barcode128.<init>(Unknown Source) > > My Code (Exception occures in first Line !): > Barcode128 code128 = new Barcode128(); > code128.setCodeType(code128.CODE_AB_TO_C); > code128.setCode(barStr); > code128.setFont(null); > Image barImagePDF = code128.createImageWithBarcode(cb, null, null); > > The Application runs on an Debian Linux powered Webserver With Tomcat > 4.0.x. > On my development Notebook everything is ok. But I wonder why I need a > Helvetica Font, when creating Barcodes??? > > The JAR ist the same as mine, other functions work fine, It's just the > Barcode! I found the following open request that has the same probs. > > THX > Dennis > > > > -------------------------------------------------------------------------- > -- > ---------- > Any reason why this exception might be occuring: > > 2860: Helvetica not found as resource. (The *.afm files must exist as > resources > > in the package com.lowagie.text.pdf.fonts) > > 2860: Exception = ExceptionConverter: com.lowagie.text.DocumentException: > Helvetica not found as resource. (The *.afm files must exist as resources > in the > package com.lowagie.text.pdf.fonts) > > 2860: end of print method > > Thd *.afm files are included in the jar file, so why wouldn't it be able > to > find them. > > > > Tony > > -----Original Message----- > From: Paulo Soares [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2003 5:49 PM > To: Tony Costanzo; [EMAIL PROTECTED] > Subject: Re: [iText-questions] REL New release itext-paulo-112 > > > Did you try with the jar at my site? > > Best Regards, > Paulo Soares > > ----- Original Message ----- > From: "Tony Costanzo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 10, 2003 20:14 > Subject: [iText-questions] REL New release itext-paulo-112 > > > > What kind of errors would you get in the race condition. I just tried > > using > > the stuff I have built using iText with another application and I got > > the > > following errors: > > > > 2060: Helvetica not found as resource. (The *.afm files must exist as > > resources > > in the package com.lowagie.text.pdf.fonts) > > 2060: Exception = ExceptionConverter: > > com.lowagie.text.DocumentException: > > Helvet > > ica not found as resource. (The *.afm files must exist as resources in > > the > > packa > > ge com.lowagie.text.pdf.fonts) > > 2060: Helvetica not found as resource. (The *.afm files must exist as > > resources > > in the package com.lowagie.text.pdf.fonts) > > 2060: Exception = ExceptionConverter: > > com.lowagie.text.DocumentException: > > Helvet > > ica not found as resource. (The *.afm files must exist as resources in > > the > > packa > > ge com.lowagie.text.pdf.fonts) > > > > But when I look in the jar file, the fonts are *.afm files are > > inlcluded. > > Any ideas? > > > > Thanks, > > Tony > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
