summaryrefslogtreecommitdiff
path: root/pdf.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-11-23 11:01:17 +0000
committerNick White <git@njw.name>2021-11-23 11:01:17 +0000
commitecc7e3e9e49d58c9bc22784a96279c4d5ba814a2 (patch)
tree9576b315dab658cdaaa8de19f500a6a344b0c10d /pdf.go
parentd4e90332b1ac2d2cd06ad2fe1c0fcdfc0b690e99 (diff)
gofmt, plus update documentation of recently changed pipeline.UploadImages
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 6543e35..72d6428 100644
--- a/pdf.go
+++ b/pdf.go
@@ -87,7 +87,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string, smaller bool) error {
b := img.Bounds()
- smallerImgWidth := b.Max.X*smallerImgHeight/b.Max.Y
+ smallerImgWidth := b.Max.X * smallerImgHeight / b.Max.Y
if smaller {
r := image.Rect(0, 0, smallerImgWidth, smallerImgHeight)
smimg := image.NewRGBA(r)
@@ -128,7 +128,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string, smaller bool) error {
// Adding a space after each word causes fewer line breaks to
// be erroneously inserted when copy pasting from the PDF, for
// some reason.
- p.fpdf.CellFormat(cellW, lineheight, cellText + " ", "", 0, "T", false, 0, "")
+ p.fpdf.CellFormat(cellW, lineheight, cellText+" ", "", 0, "T", false, 0, "")
}
}
return p.fpdf.Error()