What is the best way to output an MVC page as PDF and switching the master page to a different master page?
I was thinking I could add a parameter to the query string like format=pdf and set some sort of filtering that capture the output and transform it to a pdf.
Using classic ASP.NET I did that in an HttpModule.
What is the best way of doing it in MVC?
I have to be able to "print" all the pages in my application, so a FileResult controller method would not work. I need something generic that can work with every url adding that specific query string parameter