summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-08-17 13:39:09 +0100
committerNick White <git@njw.name>2021-08-17 13:39:09 +0100
commit767b60db23311adaf1035e821bc189877d63b7f0 (patch)
tree16f20e400c2c259488622a98b71d199cad4f62e7 /go.mod
parent48c68cfa7f18992b26765c7b67c52c11687ad74a (diff)
pdf: Stretch words to fit in their boxes, for more perfect embedding
- Words are stretched to fit their boxes, which means the accuracy is now very high indeed. This was done by modifying gofpdf to add the SetCellStretchToFit function, which will hopefully be upstreamed in due course. - Copy pasting from a PDF works well with lines rarely if ever being erroneously broken by the PDF reader. There was quite a bit of trial-and-error to improve this, and the stretched text plus a space being added after the word in CellFormat was the best (plus preserves accuracy of word and character locations).
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index 796618d..ec8afcc 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.16
require (
github.com/aws/aws-sdk-go v1.40.6
- github.com/phpdave11/gofpdf v1.4.2
+ github.com/nickjwhite/gofpdf v1.12.7-0.20210817123627-3cbaeb9797ef
github.com/wcharczuk/go-chart/v2 v2.1.0
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
rescribe.xyz/preproc v0.4.2