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
Render charts in a downloadble PDF #2705
Comments
fabio-carvalho88
changed the title
How to render charts in a downloadble PDF
Render charts in a downloadble PDF
Apr 6, 2024
Hey there, Have you found a solution? I'm working on something similar and trying to get the SVG from nivo converted into something that react-pdf can support. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Relevant Packages:
The goal is pretty clear, generate and download a PDF that has charts inside.
Calling the charts directly in my pdf template component seems to be impossible. I've tried to render them inside
<View>
and didn't work well.The approach I've at the moment is passing a base64 string that represents the chart canvas and set it as the
Image
component's source.but i'm getting this error:
Ignore any code optimizations, as they're meant to happen once the functionality is ok.
Thanks for your help in advance 🙏
Expected behavior
Render charts images in the pdf document
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: