Hi community!
We have a problem with this piece of code:
pdfkit.from_url("http://www.cubaempleo.com", "out.pdf")
This is the view of the web page:
This is the print result:
As you can see: the print result of the website with wkhtmltopdf it is as if it had been from a mobile device. Why? I'm missing a parameter for wkhtmltopdf or is it a website style problem?
Thanks!
You need to set the view port size on your command to render desktop version.
wkhtmltopdf --viewport-size 1280x1024 http://theseasonslaithieu.com test.pdf
Greats! Work for me! Thanks so much! 馃憤
You are welcome :) Please close this ticket to mark it resolved :)
Most helpful comment
You need to set the view port size on your command to render desktop version.
wkhtmltopdf --viewport-size 1280x1024 http://theseasonslaithieu.com test.pdf