From 1e278c483c1f927b37a1ffd8e4d98b2c0b22a3d3 Mon Sep 17 00:00:00 2001 From: d1ngd0 Date: Thu, 1 Nov 2018 10:31:48 -0500 Subject: orientation of a template is now defined by the parent document. depricated CreateTemplate (#207) --- template_impl.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'template_impl.go') diff --git a/template_impl.go b/template_impl.go index 01bb040..76c5019 100644 --- a/template_impl.go +++ b/template_impl.go @@ -18,11 +18,7 @@ package gofpdf */ // newTpl creates a template, copying graphics settings from a template if one is given -func newTpl(corner PointType, size SizeType, unitStr, fontDirStr string, fn func(*Tpl), copyFrom *Fpdf) Template { - orientationStr := "p" - if size.Wd > size.Ht { - orientationStr = "l" - } +func newTpl(corner PointType, size SizeType, orientationStr, unitStr, fontDirStr string, fn func(*Tpl), copyFrom *Fpdf) Template { sizeStr := "" fpdf := fpdfNew(orientationStr, unitStr, sizeStr, fontDirStr, size) -- cgit v1.2.1-24-ge1ad