How to download base64 encoded pdf?

<a href="data:application/pdf;base64,{{ document.body }}" class="btn btn-sm btn-primary" target="_blank">Download pdf</a>


in chrome, a blank page opens and in mozile everything is fine. how to solve in chrome?
June 3rd 19 at 20:24
1 answer
June 3rd 19 at 20:26
if <a download></a> or <a download="filename"></a>
not working - Romaine.Stiedemann commented on June 3rd 19 at 20:29

Find more questions by tags HTML