PDF Go is a powerful, open source, PDF generation library for the Go programming language.
Powerful layout engine
Comprehensive text rendering
Customizable styling
...
This project is a WIP; no release has been made, and is pre-v0.1
type myDoc struct {}
func (d *myDoc) Build(b *pdf.Doc) {
d.Page(func(page *pdf.Page) {
page.Content().
Text("PDF Go").FontSize(64)
}
}
func main() {
f, _ := os.Create("output.pdf")
defer f.Close()
pdf.Generate(f, &myDoc{})
}
This library is has been inspired by the great work done by Marcin Ziąbek and the QuestPDF community.