How to create a PDF?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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

    Golang PDF library for creating and processing PDF files (pure go)

  • last unipdf commit that was under the AGPL: https://github.com/unidoc/unipdf/tree/c7febe5a81d9beb6362e547260d010de075e2730

  • go-wkhtmltopdf

    Golang commandline wrapper for wkhtmltopdf

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

    A language for writing HTML user interfaces in Go.

  • I used my own templating language templ https://github.com/a-h/templ to create the HTML - but you could use Go's built in templating language instead https://pkg.go.dev/html/template

  • gotenberg

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

  • maroto

    A maroto way to create PDFs. Maroto is inspired in Bootstrap and uses gofpdf. Fast and simple.

  • gopdf

    A simple library for generating PDF written in Go lang

  • Form me the bestis https://github.com/signintech/gopdf, but you have to build programmatically every things

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