Htmldocs: Typeset and Generate PDFs with HTML/CSS

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • typst

    A new markup-based typesetting system that is powerful and easy to learn.

  • How does this compare to Typst?[1]

    What I like about Typst is that I can use it completely offline and with my editor of choice. Is this planned for htmldocs too?

    [1] https://typst.app/

  • WeasyPrint

    The awesome document factory

  • Flexbox support has been [included][1] since 2018, although my use case was the prototypical one - a single row w/ 3 columns - so YMMV with how it handles more complex layouts.

    [1]: https://github.com/Kozea/WeasyPrint/pull/579

  • 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.

    InfluxDB logo
  • bakso-doc

    PDF Generation Micro-Service

  • Cool service! I like that it’s just HTML/CSS but the front end editor looks quite cool.

    I also just open sourced part of my app that does PDF generation, but it’s completely bare bones.

    I basically wanted a wrapper around the pdf generating part of chromium so that i could generate pdfs on pages within my own app.

    Its here if anyone wants to check it out: https://github.com/awongh/bakso-doc

  • wkhtmltopdf-windows

    wkhtmltopdf - Convert html to pdf using webkit (qtwebkit). Windows binaries

  • wkhtmltopdf[1] uses the QT WebKit renderer. I used it as part of my job hut work-flow with pandoc to get pdf resumes from markdown. It got me a job, so there's that.

    [1] https://wkhtmltopdf.org/

  • flyingsaucer

    XML/XHTML and CSS 2.1 renderer in pure Java

  • I've used flying saucer pdf[1] for this in the past, but the missing piece always seems to be a descent WYSIWYG template editor. Either open source or paid.

    Any suggestions on a web solution that allows non-devs to make great templates would be appreciated.

    Historically I've built something simple with Tiny and added a preview button to render, but that super clunky.

    [1] https://github.com/flyingsaucerproject/flyingsaucer

  • react-pdf

    📄 Create PDF files using React

  • Been using https://github.com/diegomura/react-pdf for this purpose for years

    Uses React Native like components and styling.

    WYSIWYG: https://react-pdf.org/repl

  • gotenberg

    A developer-friendly API for converting numerous document formats into PDF files, and more!

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • weasyprint-rest

    Discontinued The best WeasyPrint container that exists on the web. :fire: :fire:

  • Nice Idea, looking forward to using its API in my application.

    I've used https://github.com/xpublisher/weasyprint-rest for a many years but now planning to switch from it as it's archived by the maintainer.

    All the best for the future of htmldocs.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts