Skip to content

feature: odt exporter#1331

Merged
nperez0111 merged 45 commits into
mainfrom
feature/odt-export
Mar 4, 2025
Merged

feature: odt exporter#1331
nperez0111 merged 45 commits into
mainfrom
feature/odt-export

Conversation

@YousefED

@YousefED YousefED commented Dec 18, 2024

Copy link
Copy Markdown
Collaborator

This PR adds an ODT exporter, with support for a customizable header & footer.

@vercel

vercel Bot commented Dec 18, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Mar 4, 2025 1:26pm
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 4, 2025 1:26pm

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use image-meta which is a much more lightweight lib, and is in plain JS (sharp is natively compiled I think). This would also work in both browsers & node

https://github.com/unjs/image-meta

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Nice to get rid of sharp.

  • I've extracted the util file to @shared (as it was also used for docx)
  • changed sharp to image-meta
  • only import image-meta on node / vitest, as browser side it's not necessary (we use createImageBitmap)

Comment thread packages/xl-odt-exporter/src/odt/odtExporter.tsx Outdated
@nperez0111

Copy link
Copy Markdown
Contributor

The export looks really good. Good job here @areknawo

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants