Created
March 3, 2015 00:01
-
-
Save liamkeily/05e9e0b881f3ea8bf168 to your computer and use it in GitHub Desktop.
Installing wkhtmltopdf on Ubuntu Server 12.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install wkhtmltopdf | |
| apt-get install xvfb | |
| echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh | |
| chmod a+rx /usr/bin/wkhtmltopdf.sh | |
| ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf | |
| wkhtmltopdf http://www.google.com output.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment