craft.js
craft.js copied to clipboard
Save as Pdf
Is there a possible way to save it as pdf file
Not built in. But here are two ideas on how you could do that.
A) You build your Page Builder with simple components and parse the serialized nodes yourself and use react-pdf to build a PDF.
B) You render the built page with a disabled editor and use PhantomJS to generate a PDF from that page.
Puppeteer would be a good alternative for b), too...
For example, I built a micro service to take screenshots of my drafts with puppeteer, to have a preview picture.
you can use jsPDF