|
|
|
@ -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"))
|
|
|
|
|