PDF is misaligned

I am using ERP next hosting. I created a custom print format for my invoices.

When seeing in preview everything looks good.

but in pdf, the alignment is all wrong

I read something about updating the wkhtmltopdf but I don’t think that’s the problem. Can somebody help