Rotativa
Rotativa copied to clipboard
Remove header from ViewAsPdf???
Is there an easy way to remove the header? The page header appears in the PDF file if the page is behind a login (see attached image).
Here is my code.
return new ViewAsPdf()
{
FormsAuthenticationCookieName = System.Web.Security.FormsAuthentication.FormsCookieName,
//Cookies = cookies,
ViewName = "_Invoice",
Model = model,
FileName = "NAME_Invoice.pdf",
PageSize = Rotativa.Options.Size.A4,
PageOrientation = Rotativa.Options.Orientation.Portrait,
//CustomSwitches = "--print-media-type --header-center \"text\""
};
Any help is much appreciated. Thanks!