Replies: 1 comment
-
@benjick, react-pdf(uses pdfkit) does not support text with a gradient background. Since react-pdf supports svg, we can create svg with gradient background and overlay the text on it. |
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.
-
Hey!
I wanna replicate this in react-pdf, is it possible? I haven't found a good workaround
Each gradient is a span with
background-image: linear-gradient(to right, rgb(165, 180, 252), rgb(216, 180, 254))
, butbackground-image
is not availableThanks!
Beta Was this translation helpful? Give feedback.
All reactions