Take a screenshot of your React app and generate it as PDF
1 answer
How about a combination:
html2canvas: https://html2canvas.hertzen.com/
and
jsPDF: https://parall.ax/products/jspdf
From the canvas provided by html2canvas, you can convert it to an image with .toDataUrl () and then pass it to jsPDF using the .addImage () method, which wants to get a base64 image.
+1
source to share