Created
November 6, 2013 12:07
-
-
Save tvlooy/7335061 to your computer and use it in GitHub Desktop.
wkhtmltopdf pagination proof of concept
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
wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 | |
tar xf wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 | |
php -S localhost:9090 & | |
PHP_PID=$! | |
./wkhtmltopdf-amd64 --footer-right "[page]/[topage]" http://localhost:9090/ poc.pdf | |
kill $PHP_PID | |
rm wkhtmltopdf* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment