summaryrefslogtreecommitdiff
path: root/template_impl.go
diff options
context:
space:
mode:
Diffstat (limited to 'template_impl.go')
-rw-r--r--template_impl.go6
1 files changed, 1 insertions, 5 deletions
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)