Browse Source

correct lexer rename for pdf creation

master
Joop Kiefte 7 months ago
parent
commit
4d68494a67
  1. 2
      pdf/create.go

2
pdf/create.go

@ -104,7 +104,7 @@ func line(pdf *gofpdf.Fpdf, format rules.Format, html gofpdf.HTMLBasicType, text @@ -104,7 +104,7 @@ func line(pdf *gofpdf.Fpdf, format rules.Format, html gofpdf.HTMLBasicType, text
pdf.MultiCell(0, 0.165, text, "", format.Align, false)
}
func Create(file string, format rules.Set, contents lex.Screenplay) {
func Create(file string, format rules.Set, contents lex.Document) {
pdf := gofpdf.New("P", "in", "Letter", "")
pdf.AddUTF8FontFromBytes("CourierPrime", "", font.MustAsset("Courier-Prime.ttf"))
pdf.AddUTF8FontFromBytes("CourierPrime", "B", font.MustAsset("Courier-Prime-Bold.ttf"))

Loading…
Cancel
Save