ovvn / dom-to-pdf

Generates a printable paginated pdf from DOM node using HTML5 canvas and svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Save the pdf in a server

IagoJDiniz opened this issue · comments

I'd like to know if there is a way to store the generated PDF on the server(I'm willing to turn it into base64 and save in the server).

This is a front-end library, it works within the dom on the client browser. You need a library which works server side. If you are using a node webserver, such as express, take a look at pdfkit.

As @dvwright pointed out, this is a client-side library. @IagoJDiniz You can try puppeteer on the server.