how to remove header and footer content in print media using rotativa in mvc project full code code example

Example: how to remove header and footer content in print media using rotativa in mvc project full code

string cusomtswitches = string.format(     "--print-media-type  --allow {0} --header-html {0} --allow {1} --footer-html {1} --allow {2} cover {2}",      url.action("pdfheader", "controller", new { data=""  }, request.url.scheme),      url.action("pdffooter", "controller", new { area = "" }, request.url.scheme),      url.action("pdfcover", "controller", new { data="" }, request.url.scheme) );

Tags:

Misc Example