Paulo, Thanks for looking into this and your quick response and sorry about taking your time. When I went to recreate the stack trace because I hadn't sent it all, I realized that in the development tool (VisualAge for Java) I had turned on a stop execution for NullPointerExceptions because of a previous problem. When I removed this, the job ran and created our document with the new font!
Thanks for a supporting a great tool. This has enabled us to create many PDF's in a short amount of development time! Jo Ann Cramer -----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 7:11 AM To: 'Cramer, Jo Ann'; [EMAIL PROTECTED] Subject: RE: [iText-questions] iText createFont NullPointerException I don't think it has anything to do with iText. In any case I don't see any reference to iText classes in the stack trace. Best Regards, Paulo Soares > -----Original Message----- > From: Cramer, Jo Ann [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 17:16 > To: [EMAIL PROTECTED] > Subject: [iText-questions] iText createFont NullPointerException > > I've successfully created a PDF document using iText with the > BaseFont.HELVETICA and wanted to use other fonts. When I used the > following code to access another font on my machine, it created a > NullPointerException. I am using Windows NT and JDK 1.2.2 built into > VisualAge for Java. Is there a workaround for this error so that I could > use other windows fonts? > > Thank you, Jo Ann Cramer > > > Code: > BaseFont bf = BaseFont.createFont("C:\\WINNT\\Fonts\\pala.ttf", > BaseFont.WINANSI, BaseFont.EMBEDDED); > > > Error: > java.io.InputStreamReader Reader(Object lock) - NullPointerException > (lock = null) > java.io.InputStreamReader (InputStream in, ByteToCharConverter btc) (in = > null & btc = ByteToCharConverter: ISO8859_1) > java.io.InputStreamReader (InputStream in, String enc) (in = null & enc = > 8859_1) > Properties.load(InputStream inStream) (inStream = null) > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
