I am using Rotativa to generate PDF in my \"MVC\" application. How can I save Rotativa PDF? I need to save the document on a server after all the process is completed.
You can simply try this:
var fileName = string.Format("my_file_{0}.pdf", id); var path = Server.MapPath("~/App_Data/" + fileName); System.IO.File.WriteAllBytes(path, pdfByteArray );