I am trying to change the title of the PDFJS previewer to a user friendly name. At the moment the PDF is loaded by a stream. I do indicate the FileName via Content-Disposition, but for some reason the name of the controller method is constantly shown in the title.
How can I set the previewer title as a custom title?
If I set the content disposition to attachment, I immediately get a download and the PDF is not shown in the previewer. Incidentally, the download name is correct, but it doesn’t show anything in the previewer.