aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go
blob: 349545ddab9d6fd6ade699d2c9dd2183b2b98f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2015 The draw2d Authors. All rights reserved.
// created: 26/06/2015 by Stani Michiels

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)
}