summaryrefslogtreecommitdiff
path: root/pdf.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-04-07 12:02:54 +0100
committerNick White <git@njw.name>2020-04-07 12:02:54 +0100
commitaf63449be98f1964b67981b2aedda0d2ea70fe6d (patch)
tree92e415fceb313113107fbe530b584b231940c901 /pdf.go
parent22200755d471e77d20f490ffe01ede884b5acfcb (diff)
gofmt
Diffstat (limited to 'pdf.go')
-rw-r--r--pdf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf.go b/pdf.go
index a979807..a03aecc 100644
--- a/pdf.go
+++ b/pdf.go
@@ -22,7 +22,7 @@ import (
)
// TODO: maybe set this in Fpdf struct
-const pageWidth = 5 // pageWidth in inches
+const pageWidth = 5 // pageWidth in inches
const scaleSmaller = 3 // amount the width and height are divided by
// pxToPt converts a pixel value into a pt value (72 pts per inch)
@@ -113,7 +113,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string, smaller bool) error {
continue
}
p.fpdf.SetXY(pxToPt(coords[0]), pxToPt(coords[1]))
- p.fpdf.CellFormat(pxToPt(coords[2]), pxToPt(coords[3]), html.UnescapeString(w.Text) + " ", "", 0, "T", false, 0, "")
+ p.fpdf.CellFormat(pxToPt(coords[2]), pxToPt(coords[3]), html.UnescapeString(w.Text)+" ", "", 0, "T", false, 0, "")
}
}
return p.fpdf.Error()