From 31c1da203bd00ff9e9ba602257bab2b4282ca945 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Mon, 12 Oct 2015 10:34:43 -0400 Subject: Add reference PDFs for comparison purposes. Document comparison of example documents. --- template_impl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template_impl.go') 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 -- cgit v1.2.1-24-ge1ad