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?