https://github.com/tobua/rspack-react-pdf
rspack setup to generate PDFs in the Browser with @react-pdf/renderer
https://github.com/tobua/rspack-react-pdf
Last synced: 3 months ago
JSON representation
rspack setup to generate PDFs in the Browser with @react-pdf/renderer
- Host: GitHub
- URL: https://github.com/tobua/rspack-react-pdf
- Owner: tobua
- Created: 2023-03-16T17:49:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-03T13:58:24.000Z (about 2 years ago)
- Last Synced: 2025-01-15T07:32:31.343Z (12 months ago)
- Language: TypeScript
- Homepage: https://rspack-react-pdf.vercel.app
- Size: 2.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rspack-react-pdf

`rspack` setup using [`@react-pdf/renderer`](https://react-pdf.org) (`^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](https://rspack-react-pdf.vercel.app 'PDF Generation in Browser 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](https://rsbuild.dev) which might be easier to use.
## Installation & Usage
After cloning this repository run the following commands
```sh
npm install
npm start
```
## Browser Support
Tested with recent versions of Chrome, Safari, Firefox and their mobile counterparts.