diff options
| author | Joop Kiefte <ikojba@gmail.com> | 2021-10-15 00:11:12 +0100 |
|---|---|---|
| committer | Joop Kiefte <ikojba@gmail.com> | 2021-10-15 00:11:12 +0100 |
| commit | 3509ac11c07477c86c67aedfed31ed22a18c5022 (patch) | |
| tree | 63321074fbf189ac093d2015c5765ff5148e7db0 /pdf | |
| parent | 7bf1944b6d142e11886b685da3cb235571264310 (diff) | |
Correct paths
Diffstat (limited to 'pdf')
| -rw-r--r-- | pdf/create.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pdf/create.go b/pdf/create.go index 3a65984..943c5ce 100644 --- a/pdf/create.go +++ b/pdf/create.go @@ -1,10 +1,10 @@ -// The PDF package of Lexington creates a Screenplay PDF out of the Lex screenplay parsetree. This can be generated with the several other packages, e.g. the fountain package that parses fountain to lex in preparation. +// The PDF package of PrintDraftFast creates a PDF out of the Lex markdown parsetree. package pdf import ( - "github.com/lapingvino/lexington/lex" - "github.com/lapingvino/lexington/rules" - "github.com/lapingvino/lexington/font" + "git.kiefte.eu/lapingvino/printdraftfast/lex" + "git.kiefte.eu/lapingvino/printdraftfast/rules" + "git.kiefte.eu/lapingvino/printdraftfast/font" "strconv" "strings" @@ -15,7 +15,7 @@ import ( type Tree struct { PDF *gofpdf.Fpdf Rules rules.Set - F lex.Screenplay + F lex.Document HTML gofpdf.HTMLBasicType } @@ -34,7 +34,7 @@ func (t Tree) Render() { t.PDF.SetHeaderFuncMode(func() { t.PDF.SetFont("CourierPrime", "", 12) t.PDF.SetXY(-1, 0.5) - t.PDF.Cell(0, 0, strconv.Itoa(t.PDF.PageNo()-1)+".") + t.PDF.Cell(0, 0, strconv.Itoa(t.PDF.PageNo())+".") }, true) continue case "titlepage": |
