diff options
author | Nick White <git@njw.name> | 2019-11-12 11:22:40 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-11-12 11:22:40 +0000 |
commit | 1ebb21bfd9523291b3cc6f59103204942c5b9400 (patch) | |
tree | b08a7b787cae907125b81997a2a45c861ebf14bd /pdf.go | |
parent | 488ae5c11cf7be4a8f35f6f82e19dda22663bcbf (diff) | |
parent | 1547698dfb3869e48bc79bc53a5e8d2d924a03e8 (diff) |
Merge branch 'addpdf'
Diffstat (limited to 'pdf.go')
-rw-r--r-- | pdf.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -12,8 +12,7 @@ import ( "io/ioutil" "os" - //"rescribe.xyz/gofpdf@addtextrenderingmode" - "rescribe.xyz/gofpdf" + "github.com/jung-kurt/gofpdf" "rescribe.xyz/utils/pkg/hocr" ) @@ -79,7 +78,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string) error { _ = p.fpdf.RegisterImageOptions(imgpath, gofpdf.ImageOptions{}) p.fpdf.ImageOptions(imgpath, 0, 0, pxToPt(b.Dx()), pxToPt(b.Dy()), false, gofpdf.ImageOptions{}, 0, "") - p.fpdf.SetTextRenderingMode(gofpdf.TextRenderingModeInvisible) + p.fpdf.SetTextRenderingMode(3) for _, l := range h.Lines { for _, w := range l.Words { |