Replies: 2 comments
-
react-pdf does not directly support rendering existing react components (like MUI components) to a PDF without restyling them, because it uses a separate rendering engine, there are alternative approaches to accomplish this with minimal styling overhead no backend required, minimal setup: |
Beta Was this translation helpful? Give feedback.
0 replies
-
The issue with using something like
Those are fairly significant drawbacks. |
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
-
Is there a way to take an existing React page (or section of it) and convert it to PDF?
So like if I have a complex group of React / MUI Components that represents a quote for instance - I can "virtual print" that section as a PDF easily in Chrome.
But I'd like to skip the "print" step and just provide a "Download PDF" button directly that essentially provides that. But I don't want to have to re-style the entire thing using React-PDF syntax.
Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions