I’m using a PHP wrapper for wkhtmltopdf called Snappy. It works brilliantly on any url except for my local codeigniter generated pages. I have tried with index.php, without, with .html as a url suffix, etc. It will read a html file from the same local web directory as codeigniter, but not codeigniter’s URLs (not even index.php). I am a little stumped.
- I have removed anything possibly causing a 403 from .htaccess
- there is no robots.txt
- pyrocms works with it (and it is powered by CI)
Fixed: turns out wkhtmltopdf really doesn’t like LESS CSS’s
rel="stylesheet/less"in<head>