Skip to content

🐛(frontend) SVG export #706

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

Merged
merged 2 commits into from
Mar 14, 2025
Merged

🐛(frontend) SVG export #706

merged 2 commits into from
Mar 14, 2025

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Mar 12, 2025

Purpose

The SVG were not displayed in the export (PDF / Docx).

Proposal

We convert the SVG to PNG before exporting.
Images could be out of the container, we added a max width.

  • 🐛(frontend) fix svg not rendering export pdf
  • 🐛(frontend) fix svg not rendering export dox

@AntoLC AntoLC added bug Something isn't working frontend export labels Mar 12, 2025
@AntoLC AntoLC self-assigned this Mar 12, 2025
@AntoLC AntoLC marked this pull request as draft March 12, 2025 16:45
@AntoLC AntoLC force-pushed the fix/svg-export branch 2 times, most recently from 048a534 to a965fae Compare March 13, 2025 11:46
@AntoLC AntoLC marked this pull request as ready for review March 13, 2025 11:46
@AntoLC AntoLC requested a review from NathanVss March 13, 2025 12:21
Copy link
Contributor

@NathanVss NathanVss left a comment

Choose a reason for hiding this comment

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

So sad I have nothing to say, well done ⛴️😁

AntoLC added 2 commits March 14, 2025 14:50
The svg was not rendering in the pdf export.
We overwrite the default mapping to convert the
svg to png before rendering.
The images could be out of the page as well,
we fixed this issue by adding a maxWidth to the image.
The svg was not rendering in the dox export.
We overwrite the default mapping to convert the
svg to png before rendering.
The images could be out of the page as well,
we fixed this issue by adding a maxWidth to the image.
@AntoLC AntoLC enabled auto-merge (rebase) March 14, 2025 14:13
@AntoLC AntoLC merged commit 7007d56 into main Mar 14, 2025
23 of 26 checks passed
@AntoLC AntoLC deleted the fix/svg-export branch March 14, 2025 14:13
@AntoLC AntoLC mentioned this pull request Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working export frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SVG not display in export I can't see my images when I export into PDF file
2 participants