Slate Content Export as PDF and Word Document #5577
Replies: 2 comments 3 replies
-
The format of the slate document is a json of nodes where the developers choose freely the type. If you don't have any knowledge of the pdf and word format, I would recommend that you go first to html. There is plenty of library to go from there. https://dev.to/handdot/generate-a-pdf-in-js-summary-and-comparison-of-libraries-3k0p |
Beta Was this translation helpful? Give feedback.
-
You mentioned that you have successfully implemented this functionality by converting the Slate content to HTML, and then using that HTML to generate Docx and PDF files. I am exploring a similar solution but facing some challenges. Would you mind sharing more details about how you achieved this? Specifically, I'm curious about how you handled the conversion from Slate content to HTML, and then how you transformed this HTML into PDF and Docx formats. Any insights into the libraries or tools you used, code snippets, or challenges you encountered and how you overcame them would be incredibly helpful. Thank you for your contribution to the community, and I look forward to hearing from you! Best regards. |
Beta Was this translation helpful? Give feedback.
-
I am using slate editor and want to export the editor content as PDF and Word document. Anyone with working solution. Because i tried so much option but didn't worked for me?
Beta Was this translation helpful? Give feedback.
All reactions