« Return to Thread: Remove Border Line of HeaderFooter Class

Re: Remove Border Line of HeaderFooter Class

by Bruno Lowagie (iText) :: Rate this Message:

Reply to Author | View in Thread

bzhang@... wrote:
>
> Dear Sir / Madam,

Please subscribe to the mailing list if you want to receive answers.

> When I use HeaderFooter class to generate a header and footer text,
> there are top and bottom border line around the text.

First of all: the use of HeaderFooter is discouraged.
The book, the online tutorial,... advise the use of page events.
(...)
> Is it possible to remove the top border line for header text and bottom
> border line for footer text?

Remove the borders: header.setBorder(Rectangle.NO_BORDER);
Add a bottom border: header.setBorder(Rectangle.BOTTOM);
Add a top border: footer.setBorder(Rectangle.TOP);
Add a top and bottom border (the default):
footer.setBorder(Rectangle.TOP | Rectangle.BORDER);

But as I said before: you shouldn't use class HeaderFooter.
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
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

 « Return to Thread: Remove Border Line of HeaderFooter Class