Age | Commit message (Collapse) | Author |
|
|
|
Previously for PDFs using binarised images we kept them as PNG, but
there's no good reason to do so, it's better to just get the space
savings on offer from jpeg.
|
|
is chosen
|
|
- 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).
|
|
things neater in the PDF in most cases
|
|
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.
|
|
|
|
add a little more documentation
|
|
|