My angular app has an iframe that renders a PDF:
<iframe ng-src="{{PCtrl.docSrc}}" type="application/pdf" ...></iframe>
docSrc is generated as a BASE64 encoded string, something like:
"data:application/pdf;base64,JVBERi0xLjMKMyA..."
Chrome renders the embedded PDF just fine. The PDF can be downloaded clicking on download, and the user will be presented with a "save as" dialog. The default filename given by the Chrome PDF viewer is "download.pdf", how do I change it?
Similar suggestions provided by Silvia also in #28310366 which also includes a reference to https://github.com/alferov/angular-file-saver which itself leverages https://github.com/eligrey/FileSaver.js/
may be this will help you