React Print
Why ?
React Print outputs an HTML string
React Print is meant to help developers design PDFs. It outputs an HTML string that can be used to generate a PDF using a renderer like the FileForge API.
We believe documents are at the core of communication—invoices, contracts, resumes, brochures, etc. They are the primary method for exchanging information with others professionally. So, why do we continue to use decades-old technology to create them? We believe you deserve better. Document production needs to be modernized. Start today and create your next PDF the same way you build a web app. And yes, this includes automating data integration into your documents. Say hello to react-print.
Contribute to development and give us a ⭐️
Getting Started
React Print is designed to be incrementally adopted, so you can add it to most codebases in a few minutes.
React Print
React Print is your go-to library for creating PDFs using React and TypeScript. It provides a set of components to help you build amazing documents without having to deal with the mess of creating complex layouts and maintaining archaic markup.
Create a brand-new folder with packages powered by React Print.
Components
A set of standard components to help you build amazing documents without having to deal with the mess of creating complex layouts and maintaining archaic markup.
Compile a React component to a string with the Onedoc print styles.
Allows adding CSS to the document while securely parsing and escaping it.
Create automatically numbered footnotes.
Render LaTeX formulas right in your React components.
Render Markdown inside your templates.
Display content in other page regions.
Add signature fields to your document.
A simple, drop-in way to use Tailwind CSS in your components.
Display dynamic values based on your document, such as page numbers and running headers.
Help us increase the number of components and start being an active member of the react-print community by contributing
Rendering
PDFs component created by react-print can be rendered, hosted (and more) with your preferred providers. We recommend using the FileForge API as it has been specificaly build to work with react-print.
Authors
- Auguste L. (@thisisnotFranck)
- Pierre D. (@pierre_dge120)
- Titouan L. (@titouan325)