summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-11-11 17:18:49 +0000
committerNick White <git@njw.name>2019-11-11 17:18:49 +0000
commit5ef76d472533c41b2b4fb4449c702a70e924c840 (patch)
tree2dd47d581f02cdd2c6b93dc882ed2b1eb2c58fdf
parentb9aeada4e573643985d6df03f672f2c2fec169d8 (diff)
Switch to main gofpdf, now our SetTextRenderingMode has been merged
-rw-r--r--pdf.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pdf.go b/pdf.go
index 69e2daf..4a6e7a1 100644
--- a/pdf.go
+++ b/pdf.go
@@ -10,8 +10,7 @@ import (
"io/ioutil"
"os"
- //"rescribe.xyz/gofpdf@addtextrenderingmode"
- "rescribe.xyz/gofpdf"
+ "github.com/jung-kurt/gofpdf"
"rescribe.xyz/utils/pkg/hocr"
)
@@ -71,7 +70,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 {