Skip to content

Export content to files such as .docx and PDF #564

Closed

Description

@DavidIlie

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

Activity

  1. amanjr09-glitch commented on May 21, 2024

    @amanjr09-glitch

    any updates regarding this feature?

  2. YousefED commented on Jun 11, 2024

    @YousefED
    Collaborator
  3. amiranvarov commented on Jul 22, 2024

    @amiranvarov

    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.

  4. YousefED commented on Jul 29, 2024

    @YousefED
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions