diff options
author | Nick White <git@njw.name> | 2019-10-31 13:06:43 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-10-31 13:06:43 +0000 |
commit | 0f10452d7c184096ecc98475c563ea85fd07bbf5 (patch) | |
tree | 1afc52aa7568d565ca966446f034384cb4739a76 | |
parent | 425e2146190ecb0c083817093bd4819c517edd86 (diff) |
PDF: add space to each word to ensure copy-past ability from more PDF readers
-rw-r--r-- | pdf.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |