Rotativa
Rotativa copied to clipboard
ViewAsPdf Spacing issue
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
Table in PDF
Thanks in advance, Andi
Did you manage to get the solution to this problem?
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
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