Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-08-17 | pdf: Stretch words to fit in their boxes, for more perfect embedding | Nick White | |
- 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). | |||
2021-08-09 | pdf: use same line height and origin for all words on a line as it makes ↵ | Nick White | |
things neater in the PDF in most cases | |||
2021-08-09 | pdf: significantly improve character coordinates | Nick White | |
A few good changes to make word coordinate lookups significantly more accurate: - Set font size dynamically based on the line height (previously it was fixed as size 10) - Correct height and width of word boxes (previously they were way too large, which probably didn't make a difference in the general case, but now they're correct) - Set word box margin to zero Also change PDF size to A5 paper, as that's closer to an average book page size. | |||
2020-11-18 | Switch to a maintained version of gofpdf | Nick White | |
2020-04-14 | Remove unused PreprocPattern, allow sensible defaults with aws setup, and ↵ | Nick White | |
add a little more documentation | |||
2020-04-07 | gofmt | Nick White | |
2020-02-27 | Fix Sprintf usage | Nick White | |
2020-02-27 | Add documentation, license notices, and license | Nick White | |
2019-11-20 | Implement image resizing option into PDF generation, so that smaller PDFs to ↵ | Nick White | |
be generated | |||
2019-11-12 | Merge branch 'addpdf' | Nick White | |
2019-11-12 | Embed a font, compressed, into the binary | Nick White | |
2019-11-12 | Merge branch 'addpdf' | Nick White | |
2019-11-11 | Switch to main gofpdf, now our SetTextRenderingMode has been merged | Nick White | |
2019-11-01 | Compress the font with zlib, and include it in repo | Nick White | |
2019-10-31 | Add capability to embed font files into tool | Nick White | |
2019-10-31 | PDF: add space to each word to ensure copy-past ability from more PDF readers | Nick White | |
2019-10-31 | PDF: lay out every word with coordinates separately | Nick White | |
I presumed this would mean that multiple words next to each other couldn't be reliably searched for, but this seems not to be the case. | |||
2019-10-31 | Move PDF handling code to a separate file | Nick White | |