alferov/angular-file-saver

save file as pdf or word from string base64 or blob

Opened this issue · 0 comments

hello everyone I getting a string base64 from my service REST and I show it as PDF data:application/pdf;base64,...

using the pdfViewr library for angular4

so I need to downlaod this on click event as pdf and user save it as system file

I found some solution as filesaver.js but it not clear if someone please have an idea how to do it thank you