Our great sponsors
-
go-wkhtmltopdf
Go bindings for wkhtmltopdf and high-level HTML to PDF conversion interface (by adrg)
-
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.
-
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.
I haven't needed to create PDFs in Go but a quick search brought this library up: https://github.com/adrg/go-wkhtmltopdf
https://github.com/speedata/bagme might do what you want. Not production ready but perhaps good enough for basic needs.
Settled down on simple LaTeX→PDF conversion. See for example https://github.com/dim13/gotex
Not a library per se but you can check the code it uses: https://github.com/alexferrari88/lazypress
I'm not the person you asked, but what about: https://github.com/unidoc/unipdf
I'd highly recommend tossing in the sprig library and depending on how you break up your templates, maybe creating a custom "include" helper instead of using the built in define/template helpers. The advantage of this is that if each template is capable of rendering itself independently, you can potentially render all of your templates in parallel.
In a recent project I used https://github.com/Kozea/WeasyPrint/ it is written in python, so you will need to use it like so: