summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2018-11-01 11:51:50 -0400
committerKurt <kurt.w.jung@gmail.com>2018-11-01 11:51:50 -0400
commite200d3e7c7ef20b29a47b67e58b7561f4099e7ae (patch)
tree5d67557275f4ab3c1fb8d495c1d179d62fa0cf87 /def.go
parent1e278c483c1f927b37a1ffd8e4d98b2c0b22a3d3 (diff)
Explain in documentation why CreateTemplate() is deprecated.
Diffstat (limited to 'def.go')
-rw-r--r--def.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/def.go b/def.go
index fdf439b..b4140a9 100644
--- a/def.go
+++ b/def.go
@@ -268,6 +268,8 @@ type FontLoader interface {
Open(name string) (io.Reader, error)
}
+// Pdf defines the interface used for various methods. It is implemented by the
+// main FPDF instance as well as templates.
type Pdf interface {
AddFont(familyStr, styleStr, fileStr string)
AddFontFromBytes(familyStr, styleStr string, jsonFileBytes, zFileBytes []byte)