Hi,
Thank you for considering Aspose.
I found there is some problem in the demos code. You can add the red line to resolve this problem:
case "FillFields":
templatePdf = path + @".\Resources\student.pdf";
Response.AddHeader("content-disposition","inline; filename=" + "studentOut.pdf");
//this line should be added
Response.ContentType = "application/pdf";
FormDemos.FillFields(path,templatePdf, Response.OutputStream);
We will update the demos code in the future version. Sorry for the inconvenience.
Tommy Wang
Lead Developer
Aspose Changsha Team
About Us Contact Us