Rotativa icon indicating copy to clipboard operation
Rotativa copied to clipboard

ViewAsPdf Spacing issue

Open andreasseiler opened this issue 5 years ago • 3 comments

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

andreasseiler avatar Sep 04 '18 09:09 andreasseiler

Did you manage to get the solution to this problem?

paulbly avatar Jan 31 '19 15:01 paulbly

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

davewasthere avatar Jul 31 '19 04:07 davewasthere

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

Hkly avatar Aug 17 '22 00:08 Hkly