Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gopdf
✓ github.com/signintech/gopdf
Create a simple PDF with text.
package main
import (
"github.com/signintech/gopdf"
)
func main() {
pdf := gopdf.GoPdf{}
pdf.Start(gopdf.Config{PageSize: *gopdf.PageSizeA4})
pdf.AddPage()
pdf.SetFont("Helvetica", "", 14)
pdf.Cell(nil, "Hello, PDF!")
pdf.WritePdf("hello.pdf")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.36.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.