summaryrefslogtreecommitdiff
path: root/pdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'pdf.go')
-rw-r--r--pdf.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pdf.go b/pdf.go
index c60ed27..e99b2a7 100644
--- a/pdf.go
+++ b/pdf.go
@@ -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 {