Re: [iText-questions] PdfPageEventHelper problem

2006-07-11 Thread Bruno Lowagie
Stijn Niclaes wrote: > I've been trying to generate an RTF consisting of a couple of > paragraphs and it works as you could expect, but what does the > setFirstLineIndent(float) method do? RTF, that's Mark's territory. I only know that setFirstLineIndent doesn't work with document.add() when c

Re: [iText-questions] PdfPageEventHelper problem

2006-07-11 Thread Stijn Niclaes
Hi Bruno, Paolo,I forgot to thank you guys for the help with pageEvent problem: THX ;-)But now I have another one:I've been trying to generate an RTF consisting of a couple of paragraphs and it works as you could expect, but what does the setFirstLineIndent(float) method do? I need the first line o

RE: [iText-questions] PdfPageEventHelper problem

2006-05-24 Thread Paulo Soares
@lists.sourceforge.netSubject: [iText-questions] PdfPageEventHelper problem Hi all,I'm having trouble using the PdfPageEventHelper class. The most significant part of the code:    @Override    public void onStartPage(PdfWriter writer, Document document) {      

Re: [iText-questions] PdfPageEventHelper problem

2006-05-24 Thread bruno
The problem is, that it only does it on a document with multiple pages, as soon as I generate a doc with only one page, nothing shows up. That's odd. Are you sure you add the page event before document.open? Also it is safer to replace onStartPage with onEndPage. br, Bruno -

[iText-questions] PdfPageEventHelper problem

2006-05-24 Thread Stijn Niclaes
Hi all,I'm having trouble using the PdfPageEventHelper class. The most significant part of the code:    @Override    public void onStartPage(PdfWriter writer, Document document) {        try {             PdfContentByte cb = writer.getDirectContentUnder();            BaseFont bf = BaseFont.createFo