Rotativa icon indicating copy to clipboard operation
Rotativa copied to clipboard

Remove header from ViewAsPdf???

Open faceoffers28 opened this issue 8 years ago • 0 comments

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).

capture10017

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!

faceoffers28 avatar Apr 20 '17 21:04 faceoffers28