Re: [iText-questions] RtfParagraphStyle throws a NullPointerException

2007-03-02 Thread Mark Hall
On Wednesday 10 January 2007 10:53, Sebastien Arbogast wrote: > getDocument().add(new Paragraph("Hello World!", new > RtfParagraphStyle("TEST", "Arial", 20, RtfFont.STYLE_ITALIC, > Color.BLACK))); When I run it, here is the exception I get: > > Is it a known bug? Is there a workaround? Because I re

Re: [iText-questions] RtfParagraphStyle throws a NullPointerException

2007-01-10 Thread Mark M. Hall
On Wednesday 10 January 2007 10:53, Sebastien Arbogast wrote: > getDocument().add(new Paragraph("Hello World!", new > RtfParagraphStyle("TEST", "Arial", 20, RtfFont.STYLE_ITALIC, > Color.BLACK))); When I run it, here is the exception I get: > > java.lang.NullPointerException > at com.lowagie.text.

[iText-questions] RtfParagraphStyle throws a NullPointerException

2007-01-10 Thread Sebastien Arbogast
I'm trying to do something very simple with iText 1.4.8 to generate a RTF document. I want to create a paragraph and set its RTF paragraph style name to a given constant. Here is the instruction, given that getDocument() returns an instance of com.lowagie.text.Document: getDocument().add(new Para