diff options
author | Paul Montag <pmontag@iseeme.com> | 2018-10-31 19:56:01 -0500 |
---|---|---|
committer | Paul Montag <pmontag@iseeme.com> | 2018-10-31 19:56:01 -0500 |
commit | bb287515d3b5c5b4ca7665a64a9224e8b6038804 (patch) | |
tree | 1fda5188725bdb5790afd8019b83c97b1802b3c6 /template.go | |
parent | 6421d61dcdc4da19badab16dc2a8af331c4fbbeb (diff) |
Added Ability to turn template into a byte string
Diffstat (limited to 'template.go')
-rw-r--r-- | template.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/template.go b/template.go index 60b076b..2b886ed 100644 --- a/template.go +++ b/template.go @@ -18,6 +18,7 @@ package gofpdf */ import ( + "encoding/gob" "sort" ) @@ -107,6 +108,8 @@ type Template interface { Bytes() []byte Images() map[string]*ImageInfoType Templates() []Template + gob.GobDecoder + gob.GobEncoder } func (f *Fpdf) templateFontCatalog() { |