HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
OnedocLabs
react-print-pdf
TypeScript2024–2024
OnedocLabs / react-print-pdf

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.

2Distinct people
3Mentions
0Explicit recommenders
2.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

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.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day3 dated mentions

Observed mentions: 2024-02-17 14:24:00 UTC to 2024-03-11 17:51:20 UTC.

0122024-02-17 00:00:00 UTC to 2024-02-18 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsFeb 172024-02-18 00:00:00 UTC to 2024-02-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-19 00:00:00 UTC to 2024-02-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-20 00:00:00 UTC to 2024-02-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-21 00:00:00 UTC to 2024-02-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-22 00:00:00 UTC to 2024-02-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-23 00:00:00 UTC to 2024-02-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-24 00:00:00 UTC to 2024-02-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-25 00:00:00 UTC to 2024-02-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-26 00:00:00 UTC to 2024-02-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-27 00:00:00 UTC to 2024-02-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-02-28 00:00:00 UTC to 2024-02-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsFeb 282024-02-29 00:00:00 UTC to 2024-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-01 00:00:00 UTC to 2024-03-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-02 00:00:00 UTC to 2024-03-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-03 00:00:00 UTC to 2024-03-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-04 00:00:00 UTC to 2024-03-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-05 00:00:00 UTC to 2024-03-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-06 00:00:00 UTC to 2024-03-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-07 00:00:00 UTC to 2024-03-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-08 00:00:00 UTC to 2024-03-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-09 00:00:00 UTC to 2024-03-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-10 00:00:00 UTC to 2024-03-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-03-11 00:00:00 UTC to 2024-03-12 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsMar 11

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 172024-02-17 00:00:00 UTC2024-02-18 00:00:00 UTC110
Feb 182024-02-18 00:00:00 UTC2024-02-19 00:00:00 UTC000
Feb 192024-02-19 00:00:00 UTC2024-02-20 00:00:00 UTC000
Feb 202024-02-20 00:00:00 UTC2024-02-21 00:00:00 UTC000
Feb 212024-02-21 00:00:00 UTC2024-02-22 00:00:00 UTC000
Feb 222024-02-22 00:00:00 UTC2024-02-23 00:00:00 UTC000
Feb 232024-02-23 00:00:00 UTC2024-02-24 00:00:00 UTC000
Feb 242024-02-24 00:00:00 UTC2024-02-25 00:00:00 UTC000
Feb 252024-02-25 00:00:00 UTC2024-02-26 00:00:00 UTC000
Feb 262024-02-26 00:00:00 UTC2024-02-27 00:00:00 UTC000
Feb 272024-02-27 00:00:00 UTC2024-02-28 00:00:00 UTC000
Feb 282024-02-28 00:00:00 UTC2024-02-29 00:00:00 UTC000
Feb 292024-02-29 00:00:00 UTC2024-03-01 00:00:00 UTC000
Mar 12024-03-01 00:00:00 UTC2024-03-02 00:00:00 UTC000
Mar 22024-03-02 00:00:00 UTC2024-03-03 00:00:00 UTC000
Mar 32024-03-03 00:00:00 UTC2024-03-04 00:00:00 UTC000
Mar 42024-03-04 00:00:00 UTC2024-03-05 00:00:00 UTC000
Mar 52024-03-05 00:00:00 UTC2024-03-06 00:00:00 UTC000
Mar 62024-03-06 00:00:00 UTC2024-03-07 00:00:00 UTC000
Mar 72024-03-07 00:00:00 UTC2024-03-08 00:00:00 UTC000
Mar 82024-03-08 00:00:00 UTC2024-03-09 00:00:00 UTC000
Mar 92024-03-09 00:00:00 UTC2024-03-10 00:00:00 UTC000
Mar 102024-03-10 00:00:00 UTC2024-03-11 00:00:00 UTC000
Mar 112024-03-11 00:00:00 UTC2024-03-12 00:00:00 UTC211

What Hacker News says

3 sources
I think https://github.com/diegomura/react-pdf is closer to what this company is doing. In fact their open source library, https://github.com/OnedocLabs/react-print-pdf, seems like a higher-level library that sits above react-pdf. Reminds me a lot of the set of react-pdf based components I built for a corporate job where letting users create PDFs was a huge part of the value proposition. They're solving a really cool problem, actually, because building out into certain difficult use cases like SVG support was a huge pain.
In Launch HN: Onedoc (YC W24) – A better way to create PDFs

Launch HN: Onedoc (YC W24) – A better way to create PDFs

Hey HN, we’re the co-founders of Onedoc (https://www.onedoclabs.com/ ), and the original contributors to the open-source library react-print-pdf (https://github.com/OnedocLabs/react-print-pdf ) which lets developers design and generate PDF documents automatically. Here’s a demo video: https://www.youtube.com/watch?v=MgfCyOyckQU&t=3s Billions of PDFs are generated daily: invoices, contracts, receipts, reports, you name it. Developer time gets wasted producing these basic documents because there are no good-enough tools to design and generate PDFs. We previously worked at giant firms, where documents (especially PDFs) were central to most workflows. We got asked to generate automated trade confirmations for our customer’s counterparties. We could not find any tool other than outdated libraries offering poor control over layout and the gener
Read the rest
ation process. In the end, we just created our own—basically bringing web technologies to PDFs. That was the genesis of Onedoc. PDF creation has two phases: design (specifying content and layout) and generation (producing the actual PDF file). Onedoc lets you do both simply and automatically. Design: we have an open-source library called "react-print-pdf" (https://github.com/OnedocLabs/react-print-pdf ) that allows you to design a document the same way you would design a website. It supports Tailwind CSS components, Chakra UI components, and recently also built LaTeX and Markdown components. The latter let you write text in Markdown style, and include formulas using LaTeX syntax, directly within a React component. Generation: we have an API (https://docs.onedoclabs.com/api-reference/introduction ) and Node.js SDK (https://docs.onedoclabs.com/quickstart/nodejs ) that render your designs into PDFs. The choice of renderer significantly affects the accuracy of the resulting PDF. For example, exporting a webpage into PDF will often result in a layout that differs from the original webpage. We ensure that what you designed is what you get, and therefore you have 100% control over the entire layout of your document including margin, style, etc. We can do that because we built the react-print-pdf library to match the HTML/CSS to PDF rendering tool we have. Once you have generated your document, you can either store it on your local system or, if you want, use our platform (https://app.onedoclabs.com/ ) to host your document online. If you use us, you’ll also get analytics over your documents. Our main product is an API, but you can try it on our website directly (https://www.onedoclabs.com/) using our playground without any installation or sign-up. Our pricing is usage-based: per document generated. The pricing is degressive: the more documents you generate, the less you pay per document. If you don’t want to pay for PDF generation, you can still generate as many documents as you want, but with a watermark on the margin. It’s been fun to see what our users are building with our open-source library (components, templates, etc.) and our API. We have a website (https://react-print.onedoclabs.com/) dedicated to the open-source library where we post the templates submitted by the community. Some early power users built simple web apps (CV/Resume generator, NDA and Invoice generator). We are excited to show our product to the HN community and look forward to your feedback!
293 points · Open discussion

Show HN: A new open-source library to design PDF using React

React-print-pdf is a new open-source library that simplifies PDF creation with React. You can design your PDFs like a website, integrate data from your database to your documents, and reuse community components and templates or build your own. Created by three friends who were frustrated by existing solutions and wanted to make PDF creation easier for everyone. Now it’s yours. What are your thoughts on it ?!
6 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.