-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨Export pdf / docx front side #537
base: main
Are you sure you want to change the base?
Conversation
8299154
to
a5a72eb
Compare
We have added the export to pdf and docx feature to the front side. Thanks to that, the images are now correctly exported even when the doc is private. To be able to export the doc, the data must be in blocknote format, for legacy purpose, we have to convert the template to blocknote format before exporting it.
a5a72eb
to
7dad46f
Compare
The export is managed by the frontend, so we don't need the code related to the export in the backend side anymore.
Add some changelog entries that can be useful to display in the release notes.
7dad46f
to
c3db0f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is absolutely necessary to add a loader to the button when exporting because on a large document with the demo template and a PDF export it takes a few seconds and we wonder if it doesn't bug
@@ -72,7 +72,6 @@ RUN apk add \ | |||
gettext \ | |||
gdk-pixbuf \ | |||
libffi-dev \ | |||
pandoc \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at the initial commit, I think more dependencies can be removed that are linked to exports.
@@ -50,13 +50,11 @@ dependencies = [ | |||
"openai==1.58.1", | |||
"psycopg[binary]==3.2.3", | |||
"PyJWT==2.10.1", | |||
"pypandoc==1.14", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at git history you can remove more dependencies like for example python-frontmatter and probably nested-multipart-parser
Purpose
We have added the export to pdf and docx feature to the front side.
Thanks to that, the images are now correctly exported even when the doc is private.
To be able to export the doc, the data must be in Blocknote format, for legacy purpose, we have to convert the template to Blocknote format before exporting it.
close #202
Proposal
Demo
scrnli_072OH9VH48IDJQ.webm