summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
authorPaul Montag <paul.david.montag@gmail.com>2018-12-22 18:54:08 -0600
committerKurt Jung <kurt.w.jung@gmail.com>2018-12-22 19:54:08 -0500
commita3cf901b6d1246d3e00875a3e88c69bee068156d (patch)
tree3ae6c45af72e394965ec34fc4bd519b364422786 /template.go
parent55a774389a811b454a9ee3dfa78bd28fc5d0ab18 (diff)
Updated font id generation and image id (#222)
Generated font ID will now be the same across machines when generating the same font file. Generated image Id will now be the same across machines when generating the same image file.
Diffstat (limited to 'template.go')
-rw-r--r--template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.go b/template.go
index e3e4fe5..31204c2 100644
--- a/template.go
+++ b/template.go
@@ -178,7 +178,7 @@ func (f *Fpdf) putTemplates() {
for _, key = range keyList {
// for _, ti := range tImages {
ti = tImages[key]
- f.outf("/I%d %d 0 R", ti.i, ti.n)
+ f.outf("/I%s %d 0 R", ti.i, ti.n)
}
}
for _, tt := range tTemplates {