aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-09-09 09:42:37 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-09-09 09:42:37 +0200
commit500caaeda74dd9c660279036293f4b2997cf0b03 (patch)
tree1226f60231a408b0aae67867faaa3f2cfbac8c83 /vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go
parent413560591fc2d89a73eb8a33ba28b0cc3407b1db (diff)
Add vendor
Diffstat (limited to 'vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go')
-rw-r--r--vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go b/vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go
new file mode 100644
index 0000000..349545d
--- /dev/null
+++ b/vendor/github.com/llgcode/draw2d/draw2dpdf/fileutil.go
@@ -0,0 +1,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)
+}