• How to send pdf generated from screen shot in JavaScript

    From Rikk Mor@21:1/5 to All on Sun Apr 10 01:55:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to Rikk Mor on Mon Apr 11 09:30:22 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)