Screen resolution wkhtmltopdf windows virtual server

I have NT-Service installed on a Windows virtual server (rackspace). This service uses wkhtmltopdf to generate a pdf file from a web page. The problem is that the PDF is generated with a screen resolution of 1024x768, by default on the server. I believe.

Has anyone encountered this problem before? Can I change the screen resolution of the virtual server in any way?

+3


source to share


1 answer


Adding the --page-width 1600px --page-height 1200px switches to wkhtmltopdf did the trick. Then all printouts look the same on all machines, regardless of resolution, etc.



+3


source







All Articles