rspack
setup using @react-pdf/renderer
(^3.0.0
) to generate and display PDF
documents in the browser.
- Images
- Fonts
- Async Loaded Fonts
- Table
- Download Link
- Chart
Check out the Demo
Includes an example of how Charts rendered with
React (recharts
) can be "screenshotted" and inserted into the PDF as images.
Note
This setup still uses the Rspack CLI. Rspack recently released a wrapper called Rsbuild which might be easier to use.
After cloning this repository run the following commands
npm install
npm start
Tested with recent versions of Chrome, Safari, Firefox and their mobile counterparts.