Thank you paulo... it seems your hint has fixed my problem.

james


Paulo Soares-3 wrote:
> 
> Use page events. Plenty of examples in the book and in
> http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php.
> 
> Paulo
> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of jamesev
>> Sent: Wednesday, September 10, 2008 2:01 PM
>> To: [email protected]
>> Subject: [iText-questions] document's header and footer
>>
>>
>> Hi all, this is my first post here... I'm not so used with
>> iText library.
>> My first issue is this:
>> I have to fill header and footer of my document with elements
>> like a logo, a
>> line and different descriptions each with a different alignment.
>>
>> How can I do that? I suppose I have to use HeaderFooter with
>> Phrase and
>> Chunk classes but I can't succed in obtaining the correct layout.
>> For example I want an header like this:
>>
>> something1                    something2
>> something3
>> --------------------------------------------------------------
>>
>> something1 has a right alignment, something3 a left one and
>> something2 is in
>> the center. The next line has a continuos segment.
>>
>> I can draw this in the document body using tables and cells,
>> but I cannot
>> use them in the header... am I wrong?
>>
>> I tried with
>>
>>  Paragraph p = new Paragraph();
>>    p.add(new Chunk("something1", new Font(Font.TIMES_ROMAN,
>> Font.DEFAULTSIZE
>> + 2, Font.BOLD)));
>>    p.add(new Chunk("something2", new Font(Font.TIMES_ROMAN,
>> Font.DEFAULTSIZE
>> + 2, Font.BOLD)));
>>    p.add(new Chunk("something3", new Font(Font.TIMES_ROMAN,
>> Font.DEFAULTSIZE
>> + 2, Font.BOLD)));
>>    HeaderFooter header = new HeaderFooter(p, false);
>>
>>    but the result is:
>>
>>                    something1something2something3
>>
>>         in the middle of the header.
>>         Regarding the footer I have to obtain something like this
>>
>>         --------------------------------------------------------------
>>
>>         <<LOGO>>
>> <<page number>>
>>
>> and I've got the same problem. Is it possible to set that
>> type of layout in
>> the header/footer or have I to avoid using header/footer?
>> Thanks in advance, James
> 
> 
> 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 Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> 

-- 
View this message in context: 
http://www.nabble.com/document%27s-header-and-footer-tp19413065p19414912.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to