Answer the question
In order to leave comments, you need to log in
What is the easiest way to make saving div as pdf and png for application?
There is a ReactJS application with a section on d3.js that generates reports and graphs (PHP backing).
You need to save a separate div in two formats of your choice pdf and png.
How can this be done in the easiest way and where on the user side or on the server?
The important point is to save css formatting for the block.
Answer the question
In order to leave comments, you need to log in
there are several libs:
https://github.com/MrRio/jsPDF
pdfkit.org
pdfmake.org
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question