Mark,
We have done for PDF as below. But how this is to be done for RTF. I mean what my class should extend(PdfPageEventHelper for pdf) and method onEndPage(for pdf) What about extending and method for RTF. ------------------------- public class TestPdf extends PdfPageEventHelper { // To hold the document object which holds the Page properties Document m_document = null; // To hold the Pdf Writer obbject to specify where the pdf is to be generated PdfWriter m_writer = null; private void initDocument() throws Exception { //load default properties m_document = new Document(); m_document.setPageSize(PageSize.A4); com.lowagie.text.Rectangle rec = m_document.getPageSize(); //the data is displayed in two pages A4 size. m_document.setPageSize(rec.rotate()); //the data is displayed in two pages A4 size. m_document.setHeader(new HeaderFooter(new Phrase("Header for ..........."), false)); } //end of initDocument() public void onEndPage(PdfWriter writer, Document document) { // CODE for header and footer } }//end class -----Original Message----- From: Mark Hall [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 5:19 PM To: Post all your questions about iText here Cc: [EMAIL PROTECTED] Subject: Re: [iText-questions] image and Page Number in Footer in RTF On 13.02.2007, at 08:30, Raghu wrote: > What change I need to do to get this footer along with page Number in > attached java file. > Is it possible to have such requirement in RTF? Just having briefly looked at your code, you HAVE to set the header before you open the document. Greetings, Mark ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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/