jamesev wrote:
> I'm building a pdf document using itext. The document has an header/footer I
> added using page events (I was forced todo that because the header contains
> images and other elements).
> Every time I have to add a new page I manually add some blank rows to avoid
> writing inside the header:
> 
> document.newPage();
> document.add(new Paragraph(30, " "));
> 
> the problem I have is that, when the new page is created automatically (for
> example when the page contains many long variable element), the blank lines
> are not added so the first element of the new page is written inside the
> header.
> How can I manage this? Can you give me a hint?
> Thanks, James

When you create the Document object, define a bigger margin.
http://1t3xt.info/examples/browse/?page=example&id=9
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

-------------------------------------------------------------------------
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