summaryrefslogtreecommitdiff
path: root/template_impl.go
diff options
context:
space:
mode:
authord1ngd0 <paul.david.montag@gmail.com>2018-11-01 10:31:48 -0500
committerKurt Jung <kurt.w.jung@gmail.com>2018-11-01 11:31:48 -0400
commit1e278c483c1f927b37a1ffd8e4d98b2c0b22a3d3 (patch)
treeb92b1f08fe905bfd66b4bb2400924561b6e7d5db /template_impl.go
parentff1cd8e5b8ca41d73b5f75b21ee698cd1ef14241 (diff)
orientation of a template is now defined by the parent document. depricated CreateTemplate (#207)
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)