Our great sponsors
-
react-print-pdf
Build and generate PDF using React 📄 UI kit for PDFs and print documents. Simple, reusable components and templates to create great invoices, docs, brochures. Use your favorite front-end framework React to build your next PDF.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
gotenberg
A developer-friendly API for converting numerous document formats into PDF files, and more!
The open-source library react-print-pdf brings a set of components and wrappers we can use to build beautiful PDFs in minutes.
If on the client side, you can use react-to-print to use the browser's print dialog. This is cheap option but will not support advanced features and may introduce a lot of visual bugs.
Use a server-side headless browser such as puppeteer to convert the HTML to PDF. This is the most reliable free option, but requires a server. If you need to use it in production, we recommend you use Gotenberg.