webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
623 stars 220 forks source link

HTML Footer with Page Number in PDF #132

Open amitmvaidya opened 8 years ago

amitmvaidya commented 8 years ago

Hi,

I am using rotativa to generate pdf. I am using html footer but I also want to print number in pdf footer. Can I do that? How? I am using below to print footer in pdf which prints html only.

--footer-html {0} --footer-spacing -10, Url.Action("ActionName, "ControllerName".......)

ilqar008 commented 8 years ago

use this string customSwitches = string.Format("--footer-html {0} --footer-spacing -10 ", " http://localhost:portnumber/ControllerName/ActionName?number="+number);