2015-07-10 13:11:19 +00:00
|
|
|
// Copyright 2015 The draw2d Authors. All rights reserved.
|
|
|
|
// created: 26/06/2015 by Stani Michiels
|
|
|
|
|
2015-07-06 22:25:24 +00:00
|
|
|
package draw2dpdf
|
2015-06-26 23:13:20 +00:00
|
|
|
|
2015-07-06 22:07:44 +00:00
|
|
|
import "github.com/jung-kurt/gofpdf"
|
2015-06-26 23:13:20 +00:00
|
|
|
|
2015-06-27 14:21:13 +00:00
|
|
|
// SaveToPdfFile creates and saves a pdf document to a file
|
2015-06-26 23:13:20 +00:00
|
|
|
func SaveToPdfFile(filePath string, pdf *gofpdf.Fpdf) error {
|
|
|
|
return pdf.OutputFileAndClose(filePath)
|
|
|
|
}
|