I'm generating invoices based on an online office environment. On my local server (win7) everything is working as it should. PDF's are generated perfectly with correct measurements etc. but when generating a pdf via the online server (linux) all the content gets enlarged. The pdf's hold a header, invoice rules and a footer. All of those hold text and a background-image. This causes the content to go beyond the page dimensions.
Here's an image to illustrate what I mean, left the locally generated pdf and to the right the one generated online. (blanked out some fields)
Thing's I've tried, but with no succes:
- adding the zoom parameter
- adding the dpi parameter
- updating wkhtmltopdf on the server
- setting max sizes in css (i.e. a4 size in mm)
Does anyone know how to make the PDF look the same on the online server? Is there an argument/parameter I'm missing?
Extra info:
- I'm running v0.11.0 rc2 locally and the server is on v0.11.0 rc1. Coulnd't find the rc2 version for linux or mac.
- I'm using the footer, header and zoom arguments when generating, nothing else.