summaryrefslogtreecommitdiff
path: root/pdf.go
diff options
context:
space:
mode:
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()