draw2d/draw2dpdf/fileutil.go
2015-07-07 00:25:56 +02:00

8 lines
222 B
Go

package draw2dpdf
import "github.com/jung-kurt/gofpdf"
// SaveToPdfFile creates and saves a pdf document to a file
func SaveToPdfFile(filePath string, pdf *gofpdf.Fpdf) error {
return pdf.OutputFileAndClose(filePath)
}