public IActionResult Student() { var student = new Student { Firstname = "steve", Lastname = "rogers", Major = "shields" }; var pdfBytes = _pdfService.FillFormFields("PdfFormExample", student); return(File(pdfBytes, "application/pdf", "studentcard.pdf")); }