13 lines
192 B
Go
13 lines
192 B
Go
|
package generator
|
||
|
|
||
|
import (
|
||
|
"github.com/jung-kurt/gofpdf"
|
||
|
)
|
||
|
|
||
|
func (w World) PDF(filename string) {
|
||
|
pdf := gofpdf.New("P", "mm", "A4", "")
|
||
|
pdf.AddPage()
|
||
|
|
||
|
pdf.OutputFileAndClose(filename)
|
||
|
}
|