Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to send pdf generated from screen shot in JavaScript

40 views
Skip to first unread message

JJ

unread,
Apr 10, 2022, 10:30:31 PM4/10/22
to
On Sun, 10 Apr 2022 01:55:01 -0700 (PDT), Rikk Mor wrote:
> Hi all I am a newbie in JavaScript and AngulaJs. I need to make something which will take the screenshot of the webpage make pdf of it and then I want to sent it to the backend.
>
> I have searched a lot and found some libraries to do this. But I am stuck at one point.
>
> I am using html2canvas and pdfmake javascript librabries. i have followed the docs but I am not able to get the blob of the pdf generating.
>
> My code -
> https://jsfiddle.net/ChitrangSharma07/pt9sjvka/1/
> I have made jsFiddle of my code.
> Issue is - I can only able to generate pdf and download it locally in my system but I don't want to download it I want to send the pdf to springboot backend!! I tried getting the Blob using function given in the docs of pdfmake library but it is not working.
>
> Please help

Incorrect usage of pdfmake.
I'd suggest reading its documentation again. Carefully.

> Hi all I am a newbie in JavaScript and AngulaJs.

You won't properly learn JavaScript if you use helper library.
0 new messages