Our great sponsors
-
maroto
A maroto way to create PDFs. Maroto is inspired in Bootstrap and uses gofpdf. Fast and simple.
-
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.
-
gotenberg
A developer-friendly API for converting numerous document formats into PDF files, and more!
But found the PDF library from 'github.com/johnfercher/maroto' and it worked well enough. Headaches solved. But please spare me from generating PDFs ever again! :P
LOL. I was searching for this yesterday. Another good option for doing this is by using pdfcpu Just in case anyone is interested.
Another option I use for Go was. Gotenberg which runs as a service and renders my go HTML templates to PDF.
Yeah, they don't do that and, if you look at their GitHub, their source code is a purposely obfuscated mess with a proprietary license; so it's not real FOSS. Example: https://github.com/unidoc/unipdf/blob/master/ps/ps.go
Now, a good example of PDF processing in Go can be found in the gopdf library. Their source is clear and uses an actual FOSS license. Example: https://github.com/signintech/gopdf