That situation may happen in some limit cases. If you want to avoid it do your own layout with ColumnText.
Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Marco Damilano > Sent: Monday, July 10, 2006 10:17 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] problem using onStartPage > > Hi, > we change the "EndPage.java" using the event: "onStartPage". > When the paragraph is at the end of the page, it create a new > empty page. > After this, we remove the line 1786 of the "PdfDocument.java": > > "PdfDocument.java": > > ...... > ...... > alignment = Element.ALIGN_LEFT; > indentLeft -= paragraph.indentationLeft(); > indentRight -= paragraph.indentationRight(); > > // Begin added: Bonf (Marc Schneider) 2003-07-29 > > // -------- > // Marco Damilano: line removed > // -------- > // carriageReturn(); > // -------- > // Marco Damilano: end of my change > // -------- > > // End added: Bonf (Marc Schneider) 2003-07-29 > > //add by Jin-Hsia Yang > > //end add by Jin-Hsia Yang > > break; > ...... > ...... > > We don't want to change the "PdfDocument.java"... we need to > use the event "onStartPage".... > Anyone can help us to do this? > > thanks, > > Marco Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions