linux - wkhtmltopdf doesn't show desktop size page in pdf -
i have been trying set wkthmltopdf convert html pdf documents on-the-fly on linux web server. i've looked around solutions around default 800x600 issue , found this:
/usr/bin/xvfb-run --server-args="-screen 0, 1024x768x24" wkhtmltopdf --use-xserver http://domain.com /home/location/apps/test1.pdf however, still gives resulting pdf width of 800. missing? i've tried run xvfb-run ssh command line , works flawlessly. creates pdf normal output.. it's width not being recognized...
just guess, might need set of quotes around "0, 1024x768x24' it's considered single argument after being passed on. this:
/usr/bin/xvfb-run --server-args="-screen \"0, 1024x768x24\"" wkhtmltopdf --use-xserver http://domain.com /home/location/apps/test1.pdf
they escaped \ xvfb-run command not consider them argument delimiters, rather passes them on wkhtmltopdf.
(i don't know xvfb-run, assume in turn building wkhtmltopdf command line.)
Comments
Post a Comment