I am working with a pdf in asp.net and filling in its form fields with C# code. After this is done, I would like the user to be able to download the finished document. I know I can use the Aspose save method, but I would like to have a Save As prompt (like with html headers, where the user chooses where the file is downloaded to).
string filename = “sample.pdf”;
Response.ContentType = “application/pdf”;
Response.AppendHeader(“Content-Disposition”, “Attachment; Filename=”" + filename + “”");
Response.Write(thePdf); //“thePdf” is the pdf file that was edited
Whenever I try to do this, I end up with a completely empty pdf file that cannot be opened. Any help on this matter would be great.