From 0f10452d7c184096ecc98475c563ea85fd07bbf5 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 31 Oct 2019 13:06:43 +0000 Subject: PDF: add space to each word to ensure copy-past ability from more PDF readers --- pdf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf.go') 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() -- cgit v1.2.1-24-ge1ad