I've no idea, it works for me.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Kruse, Anja (empolis GT) [SMTP:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 13:21
> To: '[EMAIL PROTECTED]'
> Subject: [iText-questions] how to use BaseFont?
>
> Hi,
>
> i tried this :
>
> PdfContentByte cb = writer.getDirectContent();
> cb.beginText();
> BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,
> BaseFont.CP1252,
> BaseFont.NOT_EMBEDDED);
> cb.setFontAndSize(bf, 12);
> cb.setTextMatrix(10, 400);
> cb.showText("Text at position 100,400.");
> cb.endText();
>
> i get the following error:
>
> java.lang.NullPointerException
> at com.lowagie.text.pdf.FontDetails.<init>(Unknown Source)
> at com.lowagie.text.pdf.PdfWriter.addSimple(Unknown Source)
> at com.lowagie.text.pdf.PdfWriter.add(Unknown Source)
> at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown
> Source)
> ... and so on.
>
> what do i have to do, to have the correct font at this point ?
>
> greetings anja
>
> Mit freundlichen Gr��en | Kind regards
>
> Anja Kruse
> - Application Engineer -
>
> empolis * GmbH
> arvato knowledge management
> part of arvato: a Bertelsmann company
> An der Autobahn 2
> 33311 G�tersloh, Germany
>
> phone : +49-5241-80-42066
> fax : +49-5241-80-41825
> mailto:[EMAIL PROTECTED]
> www.empolis.com
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions