Provide an empty Paragraph with zero leading. This way your Paragraph won't be the first and will show the spacing.
Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Javier Del Amo > Sent: Wednesday, April 16, 2008 4:20 PM > To: Post all your questions about iText here > Subject: [iText-questions] Problem with the paragraph > > Good afternoon. > > I´m having a problem with the first paragraph of the > document. I would like that this paragraph should be > separated from the upper margin, but with the option > "setSpacingBefore" not working. The paragraph is attached to > the top of the document. I know with the cb.showText I could > to do it. But with the Paragraph, is it possible? Can I > separate the paragraph from de uuper margin of the document? > > Thanks and greetings. > > 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. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
