diff options
author | Nick White <git@njw.name> | 2021-08-17 13:39:09 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-08-17 13:39:09 +0100 |
commit | 767b60db23311adaf1035e821bc189877d63b7f0 (patch) | |
tree | 16f20e400c2c259488622a98b71d199cad4f62e7 /go.sum | |
parent | 48c68cfa7f18992b26765c7b67c52c11687ad74a (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.sum')
-rw-r--r-- | go.sum | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,8 +10,8 @@ github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHW github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/phpdave11/gofpdf v1.4.2 h1:KPKiIbfwbvC/wOncwhrpRdXVj2CZTCFlw4wnoyjtHfQ= -github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= +github.com/nickjwhite/gofpdf v1.12.7-0.20210817123627-3cbaeb9797ef h1:Pq7OiIQ0gWrNQr12kRIvAH7qEr3i6hfSfd0smfwGgC0= +github.com/nickjwhite/gofpdf v1.12.7-0.20210817123627-3cbaeb9797ef/go.mod h1:HHhz41M4FT6ogJi7KMknlu/sEJd6halot657/rJwzVM= github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= |