summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorDave Barnes <phpdave11@gmail.com>2019-05-15 10:45:22 -0500
committerDave Barnes <phpdave11@gmail.com>2019-05-15 10:45:22 -0500
commit0fb5126fefeb1a7be7ed1c4dac02539af931a237 (patch)
tree9dc1ccf5ee62e07661689720ad17773a1577d240 /def.go
parent8f080922446313698730071fd92ca15900e6a941 (diff)
Add support for imported objects and templates to version 1 of gofpdf.
Diffstat (limited to 'def.go')
-rw-r--r--def.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/def.go b/def.go
index ab4e81d..f725f01 100644
--- a/def.go
+++ b/def.go
@@ -504,6 +504,10 @@ type Fpdf struct {
offsets []int // array of object offsets
templates map[string]Template // templates used in this document
templateObjects map[string]int // template object IDs within this document
+ importedObjs map[string][]byte // imported template objects (gofpdi)
+ importedObjPos map[string]map[int]string // imported template objects hashes and their positions (gofpdi)
+ importedTplObjs map[string]string // imported template names and IDs (hashed) (gofpdi)
+ importedTplIds map[string]int // imported template ids hash to object id int (gofpdi)
buffer fmtBuffer // buffer holding in-memory PDF
pages []*bytes.Buffer // slice[page] of page content; 1-based
state int // current document state