From 488ae5c11cf7be4a8f35f6f82e19dda22663bcbf Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 1 Nov 2019 15:53:08 +0000 Subject: Compress the font with zlib, and include it in repo --- cmd/pdfbook/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/pdfbook') diff --git a/cmd/pdfbook/main.go b/cmd/pdfbook/main.go index bdb486d..79db353 100644 --- a/cmd/pdfbook/main.go +++ b/cmd/pdfbook/main.go @@ -112,7 +112,10 @@ func main() { } pdf := new(bookpipeline.Fpdf) - pdf.Setup() + err = pdf.Setup() + if err != nil { + log.Fatalln("Failed to set up PDF", err) + } if os.IsNotExist(err) { err = filepath.Walk(flag.Arg(0), walker(pdf, *colour)) -- cgit v1.2.1-24-ge1ad