draw2d/pdf2d/fileutil.go

9 lines
218 B
Go
Raw Normal View History

package pdf2d
2015-07-06 22:07:44 +00:00
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)
}