BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Export content to files such as .docx and PDF

Open DavidIlie opened this issue 1 year ago • 4 comments

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

DavidIlie avatar Feb 06 '24 19:02 DavidIlie

any updates regarding this feature?

amanjr09-glitch avatar May 21 '24 03:05 amanjr09-glitch

any updates regarding this feature?

Not yet!

Also see discord (https://discord.com/channels/928190961455087667/1236776510187372554)

image

YousefED avatar Jun 11 '24 03:06 YousefED

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.

amiranvarov avatar Jul 22 '24 13:07 amiranvarov

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.

YousefED avatar Jul 29 '24 13:07 YousefED