Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string customSwitches = string.Format(" --header-html {0} --footer-html {1} ",
- Url.Action("PDFHeader", "PDF", new { vinum = VINUM, YEAR="2018" }, "https") ,
- Url.Action("PDFFooter", "PDF", new { }, "https"));
- return new ViewAsPdf(res)
- {
- PageSize = Size.A4,
- PageOrientation = Orientation.Portrait,
- CustomSwitches = customSwitches ,
- PageMargins = { Left = 20, Bottom = 20, Right = 20, Top = 20 }
- };
Add Comment
Please, Sign In to add comment