Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

((lambda (foo) (bar foo)) (baz))


devel / comp.lang.javascript / How to send pdf generated from screen shot in JavaScript

SubjectAuthor
* How to send pdf generated from screen shot in JavaScriptRikk Mor
`- Re: How to send pdf generated from screen shot in JavaScriptJJ

1
How to send pdf generated from screen shot in JavaScript

<a2a7d654-8b46-4314-b1f4-5401676e223cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17710&group=comp.lang.javascript#17710

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:2886:b0:699:bab7:ae78 with SMTP id j6-20020a05620a288600b00699bab7ae78mr17818184qkp.618.1649580902429;
Sun, 10 Apr 2022 01:55:02 -0700 (PDT)
X-Received: by 2002:a05:6870:b408:b0:dd:ed4f:b1c7 with SMTP id
x8-20020a056870b40800b000dded4fb1c7mr12148935oap.41.1649580902186; Sun, 10
Apr 2022 01:55:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Sun, 10 Apr 2022 01:55:01 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=106.205.195.116; posting-account=2Ca79QoAAAD3TjBLmEhOw2ce4ThYVEZv
NNTP-Posting-Host: 106.205.195.116
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a2a7d654-8b46-4314-b1f4-5401676e223cn@googlegroups.com>
Subject: How to send pdf generated from screen shot in JavaScript
From: morrikk068@gmail.com (Rikk Mor)
Injection-Date: Sun, 10 Apr 2022 08:55:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 18
 by: Rikk Mor - Sun, 10 Apr 2022 08:55 UTC

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

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

<1wpsvbg7dzzvi.n41i4er53zb4.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17711&group=comp.lang.javascript#17711

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.lang.javascript
Subject: Re: How to send pdf generated from screen shot in JavaScript
Date: Mon, 11 Apr 2022 09:30:22 +0700
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <1wpsvbg7dzzvi.n41i4er53zb4.dlg@40tude.net>
References: <a2a7d654-8b46-4314-b1f4-5401676e223cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="3eb244263d0addf8f782f08b56f9667a";
logging-data="12055"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LxGKectaU7r1LxhnCuTH/iqC9CoXOr50="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:L88cyLBMZyS0LxyAwNAVnY7Acdg=
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Mon, 11 Apr 2022 02:30 UTC

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.


devel / comp.lang.javascript / How to send pdf generated from screen shot in JavaScript

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor