letter spacing issue when converting html to pdf using wkhtmltopdf through pdfkit

pdfkit, ruby-on-rails, wkhtmltopdf

Solution

I realize that this question is a little bit old. But having received my fair share of frustration from this wkhtmltopdf letter-spacing issue, I want to drop a potential workaround:

'--dpi 96'

Add this option to the binary parameters, and you might be able to smile as I eventually did! viz:

wkhtmltopdf --option1 --option2 --dpi 96 "www.host.com/page.html" file.pdf

Problem

My HTML file has some paragraphs where I am using an 8pt font-size. After converting the HTML to PDF, the paragraphs gain extra letter spacing and some letters are overlapped. I tried all the suggestions from the following (like using dpi and xserver) but none are working. http://code.google.com/p/wkhtmltopdf/issues/detail?id=72&q=letter

Original source

Related problems