Word Document Editing and Download - WeWeb Integration

Hi All,

Has anyone done any work with Word Documents? Such as having an embedded Editor and also being able to download the files in docx format?

Basically, my requirement would be to allow users to edit template documents that I host on supabase, and then for them to download a personalised version of that.

Some kind of custom library integration, probably?

thanks.

2 Likes

Hi @emdiemeric :waving_hand:

I don’t recall having seen someone building this functionality, but you could try 2 approaches.

Either you use a tool you can embed directly or you could try a tool or npm package that translates code templates into the files you require.

Couple of tools I found:

hi therer, I was in a project like that and my solution was:

  • create a richtext with html format.
  • take the value from the document from docx in xano.
  • save and modify any value from the richtext component.
  • download the document again about the https://www.npmjs.com/package/html-to-docx library.

regards.

2 Likes

I’m using Tiptap. I’ve used it several times in multiple ways with a custom coded component. Happy to help you with yours too. DM me if interested.

2 Likes

Using GPT do generate a Custom Code I had real issues with docX because the formatting seems to be a a little bit tricky. The exported docX files didnt worked in drive or even word … My solutuin: It was very easy to build a proper export for doc files - they work everywhere. SO if you do not really require docX this might be a solution for you, too.