//Creates the print data and downloads the PDF to the users computer. public ActionResult createPrintData() { var url = ""; PDFGenerator name = new PDFGenerator(); url = name.FillForm(); return(File(url, "application/pdf", Server.UrlEncode(name.getFileName()))); }