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
-- 
View this message in context: 
http://www.nabble.com/document%27s-header-and-footer-tp19413065p19413065.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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to