Download PDF file from byte array/base64 string

4,039 views
Skip to first unread message

Tomasz Karowski

unread,
Sep 5, 2014, 5:18:08 AM9/5/14
to ang...@googlegroups.com
HI,
I have problem with downloading/opening in new tab pdf file.
I'm getting data from server side (it can be bytes array or base64 string or something else - I can change it)  and on client side I want to either open pdf file in new tab/window or user can save/open it. Just standard procedure when you download some file from web.
I can't find anything helpful and my experience with angular/javascript is  not too long so I'm counting on your help

Regards
Tomasz

sierain...@gmail.com

unread,
Sep 5, 2014, 7:15:01 AM9/5/14
to ang...@googlegroups.com
Hey Tomasz,

Try pdfjs.
http://mozilla.github.io/pdf.js/

Cheers!

Puneeth T.S

unread,
May 10, 2015, 1:18:32 AM5/10/15
to ang...@googlegroups.com
Hi Tomasz,

     I am currently facing the same problem I have tried with pdf.js, but it did not help me a lot. I hope you had got the solution for this problem by now? could you please share your thoughts on this?

Regards,
Puneeth T S
Reply all
Reply to author
Forward
0 new messages