Hi Marcellus,

On 31 August 2011 16:57, Marcellus <[email protected]> wrote:

> Hi,
>
> I'm trying to implement repeating headers within some existing PDF
> generating code.  The code is currently designed to include a "header"
> for each page of the report; however it is simply including this
> "header" as the first chunk of content for each page.  It is not using
> the document endPage event to insert the header information.  The result
> is that when the content for a page exceeds the physical page boundary,
> it continues to a new page without the "header" at the top.  To fix
> this, I have changed the code to insert the header using the endPage
> event; however in the same scenario where the content continues to a new
> page, this new header overlaps the content rather than being "inserted"
> before the content on the new page.
>
> Can content added to a new page via the document endPage() method be
> inserted before content that is overflowing from a previous page?  I
> hope this makes sense.
>

When creating the header through an onEndPage event, you are setting the
header at some fixed position, right?
Then change this fixed position so that it won't overlap the actual content.

HTH,
alexis
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to