I'm trying to access these examples that were referenced above but is returned 502 code.
Allysson Pereira
@Allysson Pereira
0
Reputation
4
Posts
504
Profile views
0
Followers
0
Following
Posts made by Allysson Pereira
-
RE: How to change code Handlebars to JSrender
-
RE: I'm trying download my PDF file from jsreportonline
Yes! I got it.
Thank you.
-
RE: I'm trying download my PDF file from jsreportonline
@bjrmatos I did it and it works fine. Thank you!
But right now, I just have free 72 / 200 credits to use! :Do you know how I can ask more credits? Because these I used for tests, in this case, test with download that wasn't working.
-
I'm trying download my PDF file from jsreportonline
I'm trying download my PDF file from jsreportonline, but I can't because PDF doesn't convert and when I try open using bellow code I get an error of PDF format.
jsreportClient.render(requestData).then(response => { this.$store.commit('setLoading', { show: false, }); return response.body(); }).then(response => { const linkSource = `data:application/pdf;base64,${response}`; const downloadLink = document.createElement("a"); const fileName = "myfile.pdf"; downloadLink.href = linkSource; downloadLink.download = fileName; downloadLink.click(); });