summaryrefslogtreecommitdiff
path: root/cmd/pdfbook
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-11-01 15:53:08 +0000
committerNick White <git@njw.name>2019-11-01 15:53:08 +0000
commit488ae5c11cf7be4a8f35f6f82e19dda22663bcbf (patch)
tree791ded236243e2721c48a784bb484c42a819e374 /cmd/pdfbook
parent64983a29e380a04eaf1b730e54cfe6f3399809f1 (diff)
Compress the font with zlib, and include it in repo
Diffstat (limited to 'cmd/pdfbook')
-rw-r--r--cmd/pdfbook/main.go5
1 files changed, 4 insertions, 1 deletions
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))