Hi,
I have to add header and footer to a pdf document.I am using MVC4 and rendering view to pdf document and downloading by using ITextSharp.Now I am using the below code
public ActionResult DownloadPDF(string shipId)
{
var report = new ActionAsPdf("ExporttoPDF", new { shipId = shipId });
return report;
}
Could any one please help me how to add header and footer while downloading the pdf through code.

Nilesh PatilRank #1,129 · 1.6K reputationPosted Sep 25, 2017, 3:57 AM EDT
alice yangRank #2,329 · 607 reputationPosted Sep 25, 2017, 5:44 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 25, 2017, 9:01 PM EDT
Mahesh Bodepudi91 reputationPosted Sep 25, 2017, 11:15 PM EDT