TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Htmldocs – Typeset and generate pdfs with React

5 pointsby kelvinzhang3 months ago

2 comments

kelvinzhang3 months ago
After a year since v1, I’m open-sourcing htmldocs, a React-based library for building PDF documents using modern web development tools. Write document templates in JSX, style with Tailwind, and render them to pixel-perfect PDFs with a Chromium pipeline—no more LaTeX headaches or Word&#x2F;Google Docs limitations.<p>I originally built this because I needed a better way to generate invoices and tailor resumes to job descriptions dynamically. Existing solutions had major trade-offs:<p>- Google Docs&#x2F;Word → Easy but lack APIs &amp; version control<p>- LaTeX → Structured output but painful syntax &amp; no API<p>- Figma → Flexible but not designed for automation<p>With htmldocs, you can:<p>- Define document templates and props in JSX (just like web components)<p>- Use modern CSS (flexbox, grid, Tailwind, etc.)<p>- Render server-side via a headless Chromium pipeline<p>- Upload templates for remote PDF generation via an API<p>Most of the world still runs on PDFs—contracts, reports, invoices, resumes, etc. It’s time we had a developer-first approach to document generation, just like we build for the web.<p>What frustrations have you had with existing document solutions? Would love to hear your ideas, experiences, and feedback.
polunom3 months ago
Interesting solution. Have always used HTML &amp; CSS for my resume found it a much better fit than LaTeX.