Dear all, i want to add Footer to my pdf file in every page for example: "Copyright � 2008. All rights reserved " i use this code : PdfWriter writer = PdfWriter.getInstance(document, this.pdfArray); HeaderFooter footer = new HeaderFooter(new Phrase("-"), new Phrase("-")); footer.setAlignment(Element.ALIGN_CENTER); document.setFooter(footer) i dont find anything help me to have control for adding anything to this footer..it is just show for me number of page.
If you don't want a page number then you shouldn't use the HeaderFooter (Phrase, Phrase) constructor. Use the HeaderFooter (Phrase, boolean) constructor and pass false for the boolean.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Sep 06, 2006
Thanks a lot it is worked perfectly i added the "copy right sentence" i appreciate your response.but would you please tell me how to add table to the footer..it's constructor doesnt take PdFPTable .i wonder how to add table to footer please.
Thanks a lot for your hint
Joined: Mar 22, 2005
Footers really aren't meant for complicated objects like tables, so I don't think this is possible.