{"action":"created","issue":{"url":"https://api.github.com/repos/KnpLabs/snappy/issues/221","repository_url":"https://api.github.com/repos/KnpLabs/snappy","labels_url":"https://api.github.com/repos/KnpLabs/snappy/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/snappy/issues/221/comments","events_url":"https://api.github.com/repos/KnpLabs/snappy/issues/221/events","html_url":"https://github.com/KnpLabs/snappy/issues/221","id":167535584,"number":221,"title":"Cannot generate PDF","user":{"login":"allgrowsm","id":19646090,"avatar_url":"https://avatars.githubusercontent.com/u/19646090?v=3","gravatar_id":"","url":"https://api.github.com/users/allgrowsm","html_url":"https://github.com/allgrowsm","followers_url":"https://api.github.com/users/allgrowsm/followers","following_url":"https://api.github.com/users/allgrowsm/following{/other_user}","gists_url":"https://api.github.com/users/allgrowsm/gists{/gist_id}","starred_url":"https://api.github.com/users/allgrowsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allgrowsm/subscriptions","organizations_url":"https://api.github.com/users/allgrowsm/orgs","repos_url":"https://api.github.com/users/allgrowsm/repos","events_url":"https://api.github.com/users/allgrowsm/events{/privacy}","received_events_url":"https://api.github.com/users/allgrowsm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T07:08:19Z","updated_at":"2016-07-26T07:11:44Z","closed_at":null,"body":"Here is my environment.\r\n\r\nPHP 5.6\r\nFuelPHP 1.7.3\r\n\r\nI have following source code but it is not working at all.\r\n\r\n$pdf = new Knp\\Snappy\\Pdf('/usr/local/bin/wkhtmltopdf', array(), array(\"LANG\" => \"ja_JP.UTF8\"));\r\n$pdf->setOption('encoding', 'utf-8');\r\n$pdf->setOption('toc', true);\r\n$pdf->setOption('toc-header-text', '目次');\r\n$pdf->setOption('cover', '<center><h1 style=\"display: table-cell; vertical-align: middle;width: 602px; height: 600px;font-size: 1.2em\">'.$title.'</h1>'.$logo.'</center>');\r\nheader('Content-Disposition: attachment; filename=\"report.pdf\");\r\nheader(\"Content-Type: application/pdf\");\r\necho $pdf->getOutputFromHtml($this->template->content->render());\r\nexit;\r\n\r\nI am getting following error messages.\r\n\r\nERROR - 2016-07-26 15:31:27 --> Error - The process \"/usr/local/bin/wkhtmltopdf --lowquality --encoding 'utf-8' cover '/tmp/knp_snappy579703833b1260.70296125.html' toc --toc-header-text '目次' '/tmp/knp_snappy579703833b0a69.31570749.html' '/tmp/knp_snappy579703833b0f48.84150153.pdf'\" exceeded the timeout of 60 seconds. in /home/vagrant/rakuten/vendor/symfony/process/Process.php on line 1217\r\n\r\nThe fwkhtmltopdf permission is 777.\r\n\r\nDo you know how to solve the issue?\r\n"},"comment":{"url":"https://api.github.com/repos/KnpLabs/snappy/issues/comments/235181511","html_url":"https://github.com/KnpLabs/snappy/issues/221#issuecomment-235181511","issue_url":"https://api.github.com/repos/KnpLabs/snappy/issues/221","id":235181511,"user":{"login":"allgrowsm","id":19646090,"avatar_url":"https://avatars.githubusercontent.com/u/19646090?v=3","gravatar_id":"","url":"https://api.github.com/users/allgrowsm","html_url":"https://github.com/allgrowsm","followers_url":"https://api.github.com/users/allgrowsm/followers","following_url":"https://api.github.com/users/allgrowsm/following{/other_user}","gists_url":"https://api.github.com/users/allgrowsm/gists{/gist_id}","starred_url":"https://api.github.com/users/allgrowsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allgrowsm/subscriptions","organizations_url":"https://api.github.com/users/allgrowsm/orgs","repos_url":"https://api.github.com/users/allgrowsm/repos","events_url":"https://api.github.com/users/allgrowsm/events{/privacy}","received_events_url":"https://api.github.com/users/allgrowsm/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T07:11:44Z","updated_at":"2016-07-26T07:11:44Z","body":"It seems that getOutputFromHtml() is taking long time to generate PDF"}}
{"actor":{"display_login":"allgrowsm"}}