diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-10-20 12:26:10 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-10-20 12:26:10 -0400 |
commit | e2d935b7215daa9476f1ca385a15227f5f5a7011 (patch) | |
tree | 56b837702a1d3b036e081506513d79913389875f /template_impl.go | |
parent | 26baf7d305543d6afe39d38f0b2c30054c9fa4e3 (diff) | |
parent | f45e5e9196bb313883f36e0ccc72f052f46aa37e (diff) |
Merge pull request #49 from jung-kurt/compare-reference-pdf
Compare example PDFs with reference copies
Diffstat (limited to 'template_impl.go')
-rw-r--r-- | template_impl.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template_impl.go b/template_impl.go index 093e1fd..c94f880 100644 --- a/template_impl.go +++ b/template_impl.go @@ -35,8 +35,8 @@ func newTpl(corner PointType, size SizeType, unitStr, fontDirStr string, fn func fn(&tpl) bytes := tpl.Fpdf.pages[tpl.Fpdf.page].Bytes() templates := make([]Template, 0, len(tpl.Fpdf.templates)) - for _, t := range tpl.Fpdf.templates { - templates = append(templates, t) + for _, key := range templateKeyList(tpl.Fpdf.templates, true) { + templates = append(templates, tpl.Fpdf.templates[key]) } images := tpl.Fpdf.images |