You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Export content to files such as .docx and PDF #564
Is your feature request related to a problem? Please describe.
I am working on a note editor and I would like to see if it is possible to export the data of the editor into a PDF or a word document for the user. The issue is that I know the export HTML function exists, however that doesn't render styles properly at least with libraries like jsPDF and similar.
Describe the solution you'd like
A function or an implementation that allows for a PDF or a document that follows the style of the editor as closely as possible
Reacted by Rejoan Ahmed, WB01782015, Leonardo Natale, Florian Stoica, Mohamed, Sasiliyu Adetunji, Henry Reith and João Victor Sezanosky Dalla Valle
With the server-util package and blocksToFullHTML function you should be able to make good progress exporting a pdf.
Converting to Docx is probably more work and would require a sponsor for us to implement or a community contribution. As TipTap's pacakge is not open source I don't think using that as a base is a valid solution.
Activity
amanjr09-glitch commentedon May 21, 2024
any updates regarding this feature?
YousefED commentedon Jun 11, 2024
Not yet!
Also see discord (https://discord.com/channels/928190961455087667/1236776510187372554)
amiranvarov commentedon Jul 22, 2024
First of all, great work! Thank you for this cool stuff.
I just found that TipTap recently released the Pro package that will allow exporting into Docx and few other formats. (More info)
@YousefED Maybe you could download and reverse engineer their solution? Their Pro extension is free to download, just should create a free account.
YousefED commentedon Jul 29, 2024
With the
server-utilpackage andblocksToFullHTMLfunction you should be able to make good progress exporting a pdf.Converting to Docx is probably more work and would require a sponsor for us to implement or a community contribution. As TipTap's pacakge is not open source I don't think using that as a base is a valid solution.
YousefED commentedon Jan 21, 2025
see https://www.blocknotejs.org/docs/editor-api/export-to-pdf
and https://www.blocknotejs.org/docs/editor-api/export-to-docx