Skip to content

SVG <Use /> implementation #1964

Answered by joshon
joshon asked this question in Q&A
Discussion options

You must be logged in to vote

I looked at the SVGtoPDF alternative because they have implemented the use tag, however, the way they handle it is to simply duplicate the original element over and over. The good news is that I looked at the resulting PDF and the PDF compression does a good job of compressing duplicate elements. The same is true with ReactPDF, so I will stick with ReactPDF, and not go down the rabbit hole of implementing the tag. I will just add the elements over and over and rely on PDF compression to sort it out!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by joshon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant