Good day!, I hope someone has the answer to this question. I’m having troubles when trying to “convert” an html to pdf from a rails application, I’ve followed these steps: http://www.snikt.net/blog/2012/04/26/wicked-pdf/ with no luck, when I click the link it only changes the url from “http://localhost:3000/users/3” to “http://localhost:3000/users.3” with a blank page.
Then I read that you must configure a few things first, so I follow these steps: http://code.google.com/p/wkhtmltopdf/wiki/compilation, everything looks good until I reach the part with the “make && make install”, here are the results:
cd src/lib/ && make -f Makefile
make[1]: Entering directory /home/username/wkhtmltopdf/src/lib'first’.
make[1]: Nothing to be done for
make[1]: Leaving directory /home/username/wkhtmltopdf/src/lib'/home/username/wkhtmltopdf/src/pdf’
cd src/pdf/ && make -f Makefile
make[1]: Entering directory
make[1]: Nothing to be done for first'./home/username/wkhtmltopdf/src/pdf’
make[1]: Leaving directory
cd src/image/ && make -f Makefile
make[1]: Entering directory /home/username/wkhtmltopdf/src/image'first’.
make[1]: Nothing to be done for
make[1]: Leaving directory /home/username/wkhtmltopdf/src/image'/home/username/wkhtmltopdf/src/lib’
cd src/lib/ && make -f Makefile install
make[1]: Entering directory
mkdir: cannot create directory /include': Permission denied/home/username/wkhtmltopdf/src/lib’
make[1]: *** [install_headers] Error 1
make[1]: Leaving directory
make: * [sub-src-lib-install_subtargets-ordered] Error 2
As a note the command “wkhtmltopdf some_url my_pdf.pdf” does work, the issue is when trying to “convert” an html, from a rails application, to pdf.
I appreciate every single tip you can give because I’m trully lost. I’m sorry if it’s a dumb question and for all the troubles, and thank you for your time.
Ok, just go through all of that, following this tutorial: http://blog.tcs.de/install-wkhtmltopdf-on-ubuntu-server/
Thank you guys for your time.