{"action":"created","comment":{"url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/comments/31536816","id":31536816,"diff_hunk":"@@ -27,12 +27,40 @@\n         $snappy->setOption('margin-right', $_GET['margin']);\r\n         $snappy->setOption('margin-left', $_GET['margin']);\r\n     }\r\n-    \r\n+\r\n     // Display the resulting pdf in the browser\r\n     // by setting the Content-type header to pdf\r\n     // header('Content-Disposition: attachment; filename=\"file.pdf\"');\r\n     header('Content-Type: application/pdf');\r\n-    echo $snappy->getOutput($url);\r\n+\r\n+    // Convert pdf in CMYK colorspace\r\n+    // Need GhostScript\r\n+    // Need a writeable temporary directory for php process\r\n+    if (isset($_GET['cmyk'])) {\r","path":"web/index.php","position":null,"original_position":15,"commit_id":"8d8c7a2d13491883d7c018948ffefcb8fadfd6d8","original_commit_id":"5125f8f2aa7ef61f6dd56e1e5d902727ca2a4a45","user":{"login":"xavierraffin","id":1170030,"avatar_url":"https://avatars.githubusercontent.com/u/1170030?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierraffin","html_url":"https://github.com/xavierraffin","followers_url":"https://api.github.com/users/xavierraffin/followers","following_url":"https://api.github.com/users/xavierraffin/following{/other_user}","gists_url":"https://api.github.com/users/xavierraffin/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierraffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierraffin/subscriptions","organizations_url":"https://api.github.com/users/xavierraffin/orgs","repos_url":"https://api.github.com/users/xavierraffin/repos","events_url":"https://api.github.com/users/xavierraffin/events{/privacy}","received_events_url":"https://api.github.com/users/xavierraffin/received_events","type":"User","site_admin":false},"body":"lol.  \r\nNote that my README instruction works.\r\nBut OK if you don't sleep because of this I just change it for you.","created_at":"2015-06-02T15:41:43Z","updated_at":"2015-06-02T15:41:43Z","html_url":"https://github.com/CanalTP/pdfGenerator/pull/1#discussion_r31536816","pull_request_url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/comments/31536816"},"html":{"href":"https://github.com/CanalTP/pdfGenerator/pull/1#discussion_r31536816"},"pull_request":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1","id":36707275,"html_url":"https://github.com/CanalTP/pdfGenerator/pull/1","diff_url":"https://github.com/CanalTP/pdfGenerator/pull/1.diff","patch_url":"https://github.com/CanalTP/pdfGenerator/pull/1.patch","issue_url":"https://api.github.com/repos/CanalTP/pdfGenerator/issues/1","number":1,"state":"open","locked":false,"title":"Cmyk pdf feature","user":{"login":"xavierraffin","id":1170030,"avatar_url":"https://avatars.githubusercontent.com/u/1170030?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierraffin","html_url":"https://github.com/xavierraffin","followers_url":"https://api.github.com/users/xavierraffin/followers","following_url":"https://api.github.com/users/xavierraffin/following{/other_user}","gists_url":"https://api.github.com/users/xavierraffin/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierraffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierraffin/subscriptions","organizations_url":"https://api.github.com/users/xavierraffin/orgs","repos_url":"https://api.github.com/users/xavierraffin/repos","events_url":"https://api.github.com/users/xavierraffin/events{/privacy}","received_events_url":"https://api.github.com/users/xavierraffin/received_events","type":"User","site_admin":false},"body":"CMYK pdf are needed by printers like offset or web (rotatives)","created_at":"2015-06-02T09:02:28Z","updated_at":"2015-06-02T15:41:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a0a63722873a4e9aaf7a62bbd583a0b314d70bb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/pdfGenerator/issues/1/comments","statuses_url":"https://api.github.com/repos/CanalTP/pdfGenerator/statuses/8d8c7a2d13491883d7c018948ffefcb8fadfd6d8","head":{"label":"Tisseo:cmyk-pdf-feature","ref":"cmyk-pdf-feature","sha":"8d8c7a2d13491883d7c018948ffefcb8fadfd6d8","user":{"login":"Tisseo","id":5136514,"avatar_url":"https://avatars.githubusercontent.com/u/5136514?v=3","gravatar_id":"","url":"https://api.github.com/users/Tisseo","html_url":"https://github.com/Tisseo","followers_url":"https://api.github.com/users/Tisseo/followers","following_url":"https://api.github.com/users/Tisseo/following{/other_user}","gists_url":"https://api.github.com/users/Tisseo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tisseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tisseo/subscriptions","organizations_url":"https://api.github.com/users/Tisseo/orgs","repos_url":"https://api.github.com/users/Tisseo/repos","events_url":"https://api.github.com/users/Tisseo/events{/privacy}","received_events_url":"https://api.github.com/users/Tisseo/received_events","type":"Organization","site_admin":false},"repo":{"id":35815223,"name":"pdfGenerator","full_name":"Tisseo/pdfGenerator","owner":{"login":"Tisseo","id":5136514,"avatar_url":"https://avatars.githubusercontent.com/u/5136514?v=3","gravatar_id":"","url":"https://api.github.com/users/Tisseo","html_url":"https://github.com/Tisseo","followers_url":"https://api.github.com/users/Tisseo/followers","following_url":"https://api.github.com/users/Tisseo/following{/other_user}","gists_url":"https://api.github.com/users/Tisseo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tisseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tisseo/subscriptions","organizations_url":"https://api.github.com/users/Tisseo/orgs","repos_url":"https://api.github.com/users/Tisseo/repos","events_url":"https://api.github.com/users/Tisseo/events{/privacy}","received_events_url":"https://api.github.com/users/Tisseo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tisseo/pdfGenerator","description":"","fork":true,"url":"https://api.github.com/repos/Tisseo/pdfGenerator","forks_url":"https://api.github.com/repos/Tisseo/pdfGenerator/forks","keys_url":"https://api.github.com/repos/Tisseo/pdfGenerator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tisseo/pdfGenerator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tisseo/pdfGenerator/teams","hooks_url":"https://api.github.com/repos/Tisseo/pdfGenerator/hooks","issue_events_url":"https://api.github.com/repos/Tisseo/pdfGenerator/issues/events{/number}","events_url":"https://api.github.com/repos/Tisseo/pdfGenerator/events","assignees_url":"https://api.github.com/repos/Tisseo/pdfGenerator/assignees{/user}","branches_url":"https://api.github.com/repos/Tisseo/pdfGenerator/branches{/branch}","tags_url":"https://api.github.com/repos/Tisseo/pdfGenerator/tags","blobs_url":"https://api.github.com/repos/Tisseo/pdfGenerator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tisseo/pdfGenerator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tisseo/pdfGenerator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tisseo/pdfGenerator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tisseo/pdfGenerator/statuses/{sha}","languages_url":"https://api.github.com/repos/Tisseo/pdfGenerator/languages","stargazers_url":"https://api.github.com/repos/Tisseo/pdfGenerator/stargazers","contributors_url":"https://api.github.com/repos/Tisseo/pdfGenerator/contributors","subscribers_url":"https://api.github.com/repos/Tisseo/pdfGenerator/subscribers","subscription_url":"https://api.github.com/repos/Tisseo/pdfGenerator/subscription","commits_url":"https://api.github.com/repos/Tisseo/pdfGenerator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tisseo/pdfGenerator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tisseo/pdfGenerator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tisseo/pdfGenerator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tisseo/pdfGenerator/contents/{+path}","compare_url":"https://api.github.com/repos/Tisseo/pdfGenerator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tisseo/pdfGenerator/merges","archive_url":"https://api.github.com/repos/Tisseo/pdfGenerator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tisseo/pdfGenerator/downloads","issues_url":"https://api.github.com/repos/Tisseo/pdfGenerator/issues{/number}","pulls_url":"https://api.github.com/repos/Tisseo/pdfGenerator/pulls{/number}","milestones_url":"https://api.github.com/repos/Tisseo/pdfGenerator/milestones{/number}","notifications_url":"https://api.github.com/repos/Tisseo/pdfGenerator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tisseo/pdfGenerator/labels{/name}","releases_url":"https://api.github.com/repos/Tisseo/pdfGenerator/releases{/id}","created_at":"2015-05-18T11:55:24Z","updated_at":"2015-05-18T11:55:24Z","pushed_at":"2015-06-02T15:40:14Z","git_url":"git://github.com/Tisseo/pdfGenerator.git","ssh_url":"git@github.com:Tisseo/pdfGenerator.git","clone_url":"https://github.com/Tisseo/pdfGenerator.git","svn_url":"https://github.com/Tisseo/pdfGenerator","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CanalTP:master","ref":"master","sha":"7b968917dcbd49b557c09f78761342ea1584b46a","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":26321193,"name":"pdfGenerator","full_name":"CanalTP/pdfGenerator","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/pdfGenerator","description":"","fork":false,"url":"https://api.github.com/repos/CanalTP/pdfGenerator","forks_url":"https://api.github.com/repos/CanalTP/pdfGenerator/forks","keys_url":"https://api.github.com/repos/CanalTP/pdfGenerator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/pdfGenerator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/pdfGenerator/teams","hooks_url":"https://api.github.com/repos/CanalTP/pdfGenerator/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/pdfGenerator/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/pdfGenerator/events","assignees_url":"https://api.github.com/repos/CanalTP/pdfGenerator/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/pdfGenerator/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/pdfGenerator/tags","blobs_url":"https://api.github.com/repos/CanalTP/pdfGenerator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/pdfGenerator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/pdfGenerator/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/pdfGenerator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/pdfGenerator/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/pdfGenerator/languages","stargazers_url":"https://api.github.com/repos/CanalTP/pdfGenerator/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/pdfGenerator/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/pdfGenerator/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/pdfGenerator/subscription","commits_url":"https://api.github.com/repos/CanalTP/pdfGenerator/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/pdfGenerator/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/pdfGenerator/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/pdfGenerator/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/pdfGenerator/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/pdfGenerator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/pdfGenerator/merges","archive_url":"https://api.github.com/repos/CanalTP/pdfGenerator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/pdfGenerator/downloads","issues_url":"https://api.github.com/repos/CanalTP/pdfGenerator/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/pdfGenerator/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/pdfGenerator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/pdfGenerator/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/pdfGenerator/releases{/id}","created_at":"2014-11-07T13:38:36Z","updated_at":"2014-11-17T15:36:39Z","pushed_at":"2015-06-02T15:40:14Z","git_url":"git://github.com/CanalTP/pdfGenerator.git","ssh_url":"git@github.com:CanalTP/pdfGenerator.git","clone_url":"https://github.com/CanalTP/pdfGenerator.git","svn_url":"https://github.com/CanalTP/pdfGenerator","homepage":null,"size":242,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1"},"html":{"href":"https://github.com/CanalTP/pdfGenerator/pull/1"},"issue":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/issues/1"},"comments":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/pdfGenerator/statuses/8d8c7a2d13491883d7c018948ffefcb8fadfd6d8"}}}}