I get the Open/Save dialog. If I choose Open, it replaces my currently open browser window with the PDF file with no way to return to my previous browser session.
I have gotten around this problem by not using the built in functionality of Aspose with System.Web like this:
Thank you for request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
In the first Document.Save you use “Name” whereas in your second manual method you use “Name.pdf” e.g. with the .pdf extension. Make that makes the difference?
Aspose.Words uses the “application/pdf” content type, whereas you use “binary/octet-stream”. I think “application/pdf” is the correct one to use and I don’t think it affects the browser.
I tested both suggestions.
Changing application/pdf and binary/octet-stream made no difference.
Adding the “.pdf” at the end of the file name did make a difference.
thanks