HeaderFooter and table formatting

View: New views
3 Messages — Rating Filter:   Alert me  

HeaderFooter and table formatting

by DominicTrix :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there, I have successfully created a pdf with some tables and decided to add a header and footer to the document.

The problem is that when I add the header, the formatting of the table contents becomes out of sync with the table borders - it appears that the header text pushes the table text down the page. Here is the working page without header (the table overlaps two pages):

And here it is with the header:

Any ideas? Thanks, Dominic

p.s. sry if this has been asked before, I could not find a similar question


Re: HeaderFooter and table formatting

by Paulo Soares :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.htm
l

Paulo

> -----Original Message-----
> From: itext-questions-bounces@...
> [mailto:itext-questions-bounces@...] On
> Behalf Of DominicTrix
> Sent: Wednesday, June 20, 2007 11:41 AM
> To: itext-questions@...
> Subject: [iText-questions] HeaderFooter and table formatting
>
> Hi there, I have successfully created a pdf with some tables
> and decided to add a header and footer to the document.
>
> The problem is that when I add the header, the formatting of
> the table contents becomes out of sync with the table borders
> - it appears that the header text pushes the table text down
> the page. Here is the working page without header (the table
> overlaps two pages):
>
>  <http://www.nabble.com/file/p11210839/working.jpg>
>
> And here it is with the header:
>
>  <http://www.nabble.com/file/p11210839/broken.jpg>
>
> Any ideas? Thanks, Dominic
>
> p.s. sry if this has been asked before, I could not find a
> similar question

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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Re: HeaderFooter and table formatting

by DominicTrix :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Paulo, I now understand the pageevents thing and why you'd want to use them.

Unfortunately I am coding in Coldfusion and I'm not sure I will be able to derive new classes (well it's not worth the effort for this project anyway). Oh well!

I will look into it for future reference though,

Again, thanks

Paulo Soares wrote:
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.htm
l

Paulo

> -----Original Message-----
> From: itext-questions-bounces@lists.sourceforge.net
> [mailto:itext-questions-bounces@lists.sourceforge.net] On
> Behalf Of DominicTrix
> Sent: Wednesday, June 20, 2007 11:41 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] HeaderFooter and table formatting
>
> Hi there, I have successfully created a pdf with some tables
> and decided to add a header and footer to the document.
>
> The problem is that when I add the header, the formatting of
> the table contents becomes out of sync with the table borders
> - it appears that the header text pushes the table text down
> the page. Here is the working page without header (the table
> overlaps two pages):
>
>  <http://www.nabble.com/file/p11210839/working.jpg>
>
> And here it is with the header:
>
>  <http://www.nabble.com/file/p11210839/broken.jpg>
>
> Any ideas? Thanks, Dominic
>
> p.s. sry if this has been asked before, I could not find a
> similar question


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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/