summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorMarcus Downing <marcus@bang-on.net>2015-08-04 08:29:46 +0100
committerMarcus Downing <marcus@bang-on.net>2015-08-04 08:29:46 +0100
commit480d3959083ea26fed145ecf7e75361510c4e998 (patch)
tree677c7232f8704cce2fa21ceddf2b0c4efb60aaeb /def.go
parent8f46928acb094c8838f75d663b2f560dbf934773 (diff)
Templating fixes
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 437449c..f1c8d7b 100644
--- a/def.go
+++ b/def.go
@@ -160,6 +160,8 @@ type Fpdf struct {
page int // current page number
n int // current object number
offsets []int // array of object offsets
+ templates map[int64]Template // templates used in this document
+ templateObjects map[int64]int //template object IDs within this document
buffer fmtBuffer // buffer holding in-memory PDF
pages []*bytes.Buffer // slice[page] of page content; 1-based
state int // current document state