gmanny / Pechkin

.NET Wrapper for WkHtmlToPdf static DLL. Allows you to utilize full power of the library.
400 stars 128 forks source link

Kerning #17

Closed shaundon closed 12 years ago

shaundon commented 12 years ago

Apologies if this doesn't count as a legitimate issue (maybe it's a problem in the underlying library and not Pechkin), but when I convert HTML to PDF, the kerning of text seems to be affected - letters get a little squashed together.

gmanny commented 12 years ago

Didn't notice that. Some screenshots with comparison will greatly help me to understand what you mean.

shaundon commented 12 years ago

I've knocked together a quick test.

Here's a HTML page: http://sdonnelly.co.uk/downloads/pechkin_test.html

And the associated conversion to PDF is at: http://sdonnelly.co.uk/downloads/pechkin_test.pdf

I can mainly see the letters squashed together with the 'H' and 'e' of 'Here', as well as the 's' and 'o' of 'some'.

It's not a huge deal or anything as the text is still legible, I just thought it's worth checking that there aren't some changes possible to remedy this.

gmanny commented 12 years ago

I'm afraid it's a three and a half year old bug in underlying library http://code.google.com/p/wkhtmltopdf/issues/detail?id=72

That makes some ugly documents, but I can't do much about it, even now that I've been able to reproduce this bug.

shaundon commented 12 years ago

Ok, thanks for looking into it :)

gmanny commented 12 years ago

It happens only when you use font-size css property.