I have a NT-Service installed on a virtual windows server (rackspace). This service is using wkhtmltopdf to generate a pdf from a webpage. The problem is that the PDF is generated with a screen resolution of 1024x768, default on server I guess.
Anybody faced this problem earlier? Can I change the virtual server screen resolution somehow?
Adding switches --page-width 1600px --page-height 1200px to wkhtmltopdf did the trick. Then all printouts looks the same on all machines, no matter resolution etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With