How to download PDF files in Angular
Use case: Parse the blob response or base64 encoded string received from backend and Download PDF file on the fly.
The backend service sends blob data as response
%PDF-1.5
%âãÏÓ
1 0 obj
/Type/Page/Parent 8 0 R /MediaBox[ 0 0 612 792]/Contents 9 0 R ...
blog.aakashgoplani.in3 min read
Ruslan Biletskyi
Hi, Aakash Goplani. I have implemented downloading, everything work fine. But have problem when I'm trying open files locally. I have got an error: Failed to download pdf.
Do you happen to know what is wrong, or maybe I can't to open files in new tab locally?