summaryrefslogtreecommitdiff
path: root/pdf.go
AgeCommit message (Collapse)Author
2021-08-09pdf: 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-09pdf: significantly improve character coordinatesNick 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-18Switch to a maintained version of gofpdfNick White
2020-04-14Remove unused PreprocPattern, allow sensible defaults with aws setup, and ↵Nick White
add a little more documentation
2020-04-07gofmtNick White
2020-02-27Fix Sprintf usageNick White
2020-02-27Add documentation, license notices, and licenseNick White
2019-11-20Implement image resizing option into PDF generation, so that smaller PDFs to ↵Nick White
be generated
2019-11-12Merge branch 'addpdf'Nick White
2019-11-12Embed a font, compressed, into the binaryNick White
2019-11-12Merge branch 'addpdf'Nick White
2019-11-11Switch to main gofpdf, now our SetTextRenderingMode has been mergedNick White
2019-11-01Compress the font with zlib, and include it in repoNick White
2019-10-31Add capability to embed font files into toolNick White
2019-10-31PDF: add space to each word to ensure copy-past ability from more PDF readersNick White
2019-10-31PDF: lay out every word with coordinates separatelyNick 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-31Move PDF handling code to a separate fileNick White