The full package address to the resources is com.lowagie.text.pdf.fonts. Did
you try to put the iText.jar in the WEB-INF/lib directory?
Best Regards,
Paulo Soares
----- Original Message -----
From: "Dimiceli, John - OSHA - CTR" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 17:27
Subject: [iText-questions] RE :Font question (Dimiceli, John - OSHA - CTR)
> Re-capping topic #13 (quoted below), my PDF does not work when deployed
> to a Solaris machine. I receive the message...
>
> "Helvetica-Bold not found as resource. (The *.afm files must
> exist as resources in the package com.lowagie.text.pdf.fonts)"
>
> During troubleshooting I've discovered that all the fonts referenced in
> the program produce the same error, not just Helvetica-Bold which leads
> me to think the problem is NOT with Helvetica-Bold, it's something more
> generic.
>
> Looking at the iText source code in the FontFactory, BaseFont, and
> Type1Font classes, iText appears to retrieve the font file through the
> BaseFont.getResourceStream method which uses a Context Class Loader to
> get the afm font file. The directory location of the afm font file
> appears to be hardcoded to the "/fonts" directory.
>
> This seems to work OK on my local machine but bombs upon deployment to
> my UNIX box. I have verified the existence of the afm font files in the
> standard Solaris location,
>
> "usr/openwin/lib/X11/fonts/Type1/afm".
>
> Do I need to change the BaseFont.RESOURCE_PATH value ("/fonts") which
> reflects the location of the fonts and re-compile, or should I deploy
> the iText jar in addition to my own programs? Or have I mis-diagnosed
> the problem?
>
> Help
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [ mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> ]
> Sent: Thursday, July 24, 2003 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: iText-questions digest, Vol 1 #1368 - 14 msgs
>
>
> Send iText-questions mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> <https://lists.sourceforge.net/lists/listinfo/itext-questions>
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
> 1. table with cells in a tagmap (Hesse Joachim ICM N PG R D F4)
> 2. Re: table with cells in a tagmap (Bruno)
> 3. writing to an existing pdf file (=?iso-8859-1?Q?
> Stefanie=20H=F6lderl ?=)
> 4. Write to an existing pdf (Hoelderl Stefanie ZFF PA)
> 5. Re: writing to an existing pdf file (Paulo Soares)
> 6. CellSpacing in PdfPTables
> (=?iso-8859-1?Q?Margarita=20L=EFpez=20del=20Campo?=)
> 7. Latin2 or UNICODE letters (Igor Hasimi)
> 8. problem with PdfPTable (Grzegorz Kucner)
> 9. Re: difficulties printing generated pdf files due to size
> (=?iso-8859-1?q?Martin=20Koel?=)
> 10. Re: CellSpacing in PdfPTables (Paulo Soares)
> 11. Re: Latin2 or UNICODE letters (Paulo Soares)
> 12. Re: problem with PdfPTable (Paulo Soares)
> 13. Font question (Dimiceli, John - OSHA - CTR)
> 14. PDF file opening error (Kenny G. Dubuisson, Jr.)
>
> --__--__--
>
> Message: 13
> From: "Dimiceli, John - OSHA - CTR" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> Date: Thu, 24 Jul 2003 09:44:23 -0400
> Subject: [iText-questions] Font question
>
> I get this message when deploying to one location, but in other
> locations it
> works fine:
> Helvetica-Bold not found as resource. (The *.afm files must exist as
> resources in the package com.lowagie.text.pdf.fonts)
>
> Does anyone know how to fix?
> John
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> <https://lists.sourceforge.net/lists/listinfo/itext-questions>
>
>
> End of iText-questions Digest
>
>
-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions