Convert SVG files to react-pdf
SVG components
#1707
Closed
robertsargent
started this conversation in
Show and tell
Replies: 1 comment
-
It looks like you confused React-PDF with @react-pdf/renderer. Please file an issue in their repo instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For a number of stylistic elements in our app, we render
.svg
files as follows:We wanted to be able to render these as SVGs in our PDF exports, so I created a wrapper to convert standard XML syntax to
react-pdf
SVG components:ReactPdfSvg.tsx
Example.tsx
Let me know your comments/thoughts. I have a nagging feeling there might be a better/simpler way to achieve the same result!
Beta Was this translation helpful? Give feedback.
All reactions