summaryrefslogtreecommitdiff
path: root/pdf.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-31 13:06:43 +0000
committerNick White <git@njw.name>2019-10-31 13:06:43 +0000
commit0f10452d7c184096ecc98475c563ea85fd07bbf5 (patch)
tree1afc52aa7568d565ca966446f034384cb4739a76 /pdf.go
parent425e2146190ecb0c083817093bd4819c517edd86 (diff)
PDF: add space to each word to ensure copy-past ability from more PDF readers
Diffstat (limited to 'pdf.go')
-rw-r--r--pdf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf.go b/pdf.go
index bfd2d71..69e2daf 100644
--- a/pdf.go
+++ b/pdf.go
@@ -80,7 +80,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string) 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()