webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 224 forks source link

ViewAsPdf Spacing issue #195

Open andreasseiler opened 6 years ago

andreasseiler commented 6 years ago

Hi there,

I didn't find any issue regarding this problem. I have a table which is rendered to a PDF. The table looks normal if I render it as HTML. But when I use ViewAsPdf the Text gets squished together and I can't figure out why ... Maybe someone had this issue before?

HTML Table image

Table in PDF image

Thanks in advance, Andi

paulbly commented 5 years ago

Did you manage to get the solution to this problem?

davewasthere commented 5 years ago

I get the same thing, but found that body { margin: 0 } does help sort it somewhat (but not for larger tables...

But it's mostly likely a wkhtmltopdf rendering issue, as the HTML looks fine. https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3243

Hkly commented 2 years ago

Using wkhtmltopdf for another project, changing the dpi affected some of my letter spacing. Might be similar to this https://stackoverflow.com/questions/10829209/letter-spacing-issue-when-converting-html-to-pdf-using-wkhtmltopdf-through-pdfki