diff options
-rw-r--r-- | pdf/create.go | 9 | ||||
-rw-r--r-- | rules/rules.go | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/pdf/create.go b/pdf/create.go index 79184a4..4cf17f9 100644 --- a/pdf/create.go +++ b/pdf/create.go @@ -21,6 +21,15 @@ func (t Tree) pr(a string, text string) { func (t Tree) Render() { for _, row := range t.F { + switch row.Type { + case "newpage": + t.PDF.AddPage() + continue + case "titlepage": + t.PDF.SetY(4) + case "metasection": + t.PDF.SetY(-2) + } if t.Rules.Get(row.Type).Hide { continue } diff --git a/rules/rules.go b/rules/rules.go index cd8e890..45e5b56 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -64,4 +64,12 @@ var Default = Set{ Left: 1.5, Width: 6, }, + "title": { + Left: 3.6, + Width: 4, + }, + "meta": { + Left: 1.5, + Width: 3, + }, } |