Benoit, Mark H. writes:

> I need to place our company logo in the top left had corner as well
> as Repeat the name of the report on the top of each page. 
> 
> A footer of the page number is also needed but was simple using your
> examples. 
> 
> What I have done, is using the onStartPage, I add the image to the 
> doc, as well as adding a paragraph which contained the report title.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
>
> onStartPage should not be used to produce output
> (i.e. to write things to the document), only to
> set variables. 

I don't know how you did the footer (using the HeaderFooter object?)
but in case of the header I think you've got something wrong. 

Don't add images and text in inStartPage.
Add it in onEndPage, not with document.add(someImage) or
document.add(somePhrase), but with an image and text that
are added with absolute positions (using the PdfContentByte
object). If necessary, you can make the top margin a little
bit bigger to make some space for your company logo. 

(Also please post this kind of questions to the mailing
list so that the Q&A's get archived for future use)

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to