summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/template.go b/template.go
index 0bb7f75..d27bc40 100644
--- a/template.go
+++ b/template.go
@@ -18,6 +18,7 @@ package gofpdf
*/
import (
+ "encoding/gob"
"sort"
)
@@ -123,6 +124,9 @@ type Template interface {
Bytes() []byte
Images() map[string]*ImageInfoType
Templates() []Template
+ Serialize() ([]byte, error)
+ gob.GobDecoder
+ gob.GobEncoder
}
func (f *Fpdf) templateFontCatalog() {