How to add footer to pdf page when page is added using iTextSharp Stamper.InsertPage method

279 Views Asked by At

I am adding Pdftable to existing pdf, Existing pdf already has footer but in some cases if table rows are more, I am inserting new page using

stamper.InsertPage(pagecount, pagesize); 

But I am not sure how I can add footer to this newly added page. What I have tried up to now is

 stamper.Writer.PageEvent = new PdfFooterClass()
  {
      //Below are the properties of pdfFooterClass whose values used for footer.
      Title = "My Sample Page"
      UserId = "007" 
  };

But this doesn't work, Please suggest what will be the right method to add footer while inserting page using stamper. I am adding my new page with different method than used in this Add Header and Footer for PDF using iTextsharp so this does't solve my problem.

Thanks in advance.

0

There are 0 best solutions below