{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-snappy/issues/29","labels_url":"https://api.github.com/repos/barryvdh/laravel-snappy/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-snappy/issues/29/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-snappy/issues/29/events","html_url":"https://github.com/barryvdh/laravel-snappy/issues/29","id":53431398,"number":29,"title":"Including CSS file not working on Homestead","user":{"login":"austenc","id":575421,"avatar_url":"https://avatars.githubusercontent.com/u/575421?v=3","gravatar_id":"","url":"https://api.github.com/users/austenc","html_url":"https://github.com/austenc","followers_url":"https://api.github.com/users/austenc/followers","following_url":"https://api.github.com/users/austenc/following{/other_user}","gists_url":"https://api.github.com/users/austenc/gists{/gist_id}","starred_url":"https://api.github.com/users/austenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austenc/subscriptions","organizations_url":"https://api.github.com/users/austenc/orgs","repos_url":"https://api.github.com/users/austenc/repos","events_url":"https://api.github.com/users/austenc/events{/privacy}","received_events_url":"https://api.github.com/users/austenc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-05T19:13:31Z","updated_at":"2015-02-18T20:21:55Z","closed_at":null,"body":"@barryvdh -- firstly, thank you very much for writing this wrapper, much appreciated.\r\n\r\nWhen I have a (blade) view `pdfs.example` like:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n\t<title>Scantron Form</title>\r\n\t{{ HTML::style('css/style.min.css') }}\r\n</head>\r\n<body>\r\n    <p>My code here</p>\r\n</body>\r\n```\r\n\r\nand an associated route which maps to a controller function that contains:\r\n```\r\n\t\t$pdf  = PDF::loadView('pdfs.example');\r\n\t\treturn $pdf->stream();\r\n```\r\n\r\nI get 'failed to load pdf document' when I try to view the pdf in-browser. I am using a laravel homestead environment and accessing it with a url like `http://mysite.dev:8000/pdf/example`. \r\n\r\nI've found that if I replace the `HTML::style()` line with `<style type=\"text/css\">` and paste in my minified css file, everything works as expected.\r\n\r\n`laravel.log` shows  `[2015-01-05 12:03:24] local.ERROR: exception 'RuntimeException' with message 'The exit status code '1' says something went wrong:`\r\n\r\nLet me know if there's anything else I can provide to help explain the issue. I'm not sure whether this is an error with snappy itself or the wrapper, or if I'm just doing something wrong? \r\n\r\nThanks for any insight you can provide. \r\n\r\nUpdate: I linked to this issue in my [related thread](https://laracasts.com/discuss/channels/general-discussion/using-knp-snappy-with-laravel-homested-css-file-not-working) over on laracasts"},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-snappy/issues/comments/74940273","html_url":"https://github.com/barryvdh/laravel-snappy/issues/29#issuecomment-74940273","issue_url":"https://api.github.com/repos/barryvdh/laravel-snappy/issues/29","id":74940273,"user":{"login":"dereckmartin","id":5254148,"avatar_url":"https://avatars.githubusercontent.com/u/5254148?v=3","gravatar_id":"","url":"https://api.github.com/users/dereckmartin","html_url":"https://github.com/dereckmartin","followers_url":"https://api.github.com/users/dereckmartin/followers","following_url":"https://api.github.com/users/dereckmartin/following{/other_user}","gists_url":"https://api.github.com/users/dereckmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/dereckmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereckmartin/subscriptions","organizations_url":"https://api.github.com/users/dereckmartin/orgs","repos_url":"https://api.github.com/users/dereckmartin/repos","events_url":"https://api.github.com/users/dereckmartin/events{/privacy}","received_events_url":"https://api.github.com/users/dereckmartin/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T20:21:55Z","updated_at":"2015-02-18T20:21:55Z","body":"Needs to be an absolute path and not a relative path for CSS and javascript includes.  I ran into this last night.  \r\n\r\nSo the css and javascript paths need to be \"http://mysite.dev:8000/css/app.css\".  For whatever reason wkhtmltopdf executable doesn't seem to resolve those assets as being relative to the page.  After I changed my pdf template to use absolute urls, the problem resolved it self for me. "}}