{"action":"created","issue":{"url":"https://api.github.com/repos/dompdf/dompdf/issues/1285","repository_url":"https://api.github.com/repos/dompdf/dompdf","labels_url":"https://api.github.com/repos/dompdf/dompdf/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/dompdf/dompdf/issues/1285/comments","events_url":"https://api.github.com/repos/dompdf/dompdf/issues/1285/events","html_url":"https://github.com/dompdf/dompdf/issues/1285","id":184086720,"number":1285,"title":"Namespace use in Cpdf","user":{"login":"duprasf","id":4225321,"avatar_url":"https://avatars.githubusercontent.com/u/4225321?v=3","gravatar_id":"","url":"https://api.github.com/users/duprasf","html_url":"https://github.com/duprasf","followers_url":"https://api.github.com/users/duprasf/followers","following_url":"https://api.github.com/users/duprasf/following{/other_user}","gists_url":"https://api.github.com/users/duprasf/gists{/gist_id}","starred_url":"https://api.github.com/users/duprasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duprasf/subscriptions","organizations_url":"https://api.github.com/users/duprasf/orgs","repos_url":"https://api.github.com/users/duprasf/repos","events_url":"https://api.github.com/users/duprasf/events{/privacy}","received_events_url":"https://api.github.com/users/duprasf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dompdf/dompdf/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dompdf/dompdf/milestones/4","html_url":"https://github.com/dompdf/dompdf/milestones/0.7.1","labels_url":"https://api.github.com/repos/dompdf/dompdf/milestones/4/labels","id":1217215,"number":4,"title":"0.7.1","description":null,"creator":{"login":"bsweeney","id":485897,"avatar_url":"https://avatars.githubusercontent.com/u/485897?v=3","gravatar_id":"","url":"https://api.github.com/users/bsweeney","html_url":"https://github.com/bsweeney","followers_url":"https://api.github.com/users/bsweeney/followers","following_url":"https://api.github.com/users/bsweeney/following{/other_user}","gists_url":"https://api.github.com/users/bsweeney/gists{/gist_id}","starred_url":"https://api.github.com/users/bsweeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsweeney/subscriptions","organizations_url":"https://api.github.com/users/bsweeney/orgs","repos_url":"https://api.github.com/users/bsweeney/repos","events_url":"https://api.github.com/users/bsweeney/events{/privacy}","received_events_url":"https://api.github.com/users/bsweeney/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":8,"state":"open","created_at":"2015-07-21T01:44:50Z","updated_at":"2016-10-20T00:54:20Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-10-19T22:07:55Z","updated_at":"2016-10-20T01:24:10Z","closed_at":null,"body":"I'm not sure if I'm the only (or first) one to find/report this problem, I did a quick search in your issues and could not find someone that reported it already. Sorry if this is a duplicate.\r\n\r\nWhen using Dompdf on a server with Imagick I get a class not found error. In the Cpdf class, the class Imagick is called without the backslash or a ```use``` statement at the top so the code is looking for the ```DompdfLib\\Imagick``` class.\r\nhttps://github.com/dompdf/dompdf/blob/master/lib/Cpdf.php#L4406\r\n\r\nIt can be resolved easily by adding the ```use Imagick;``` statement at the beginning of the file. \r\n\r\nI'm guessing it would cause the same problem with the Gmagick class\r\nhttps://github.com/dompdf/dompdf/blob/master/lib/Cpdf.php#L4371\r\n"},"comment":{"url":"https://api.github.com/repos/dompdf/dompdf/issues/comments/254985552","html_url":"https://github.com/dompdf/dompdf/issues/1285#issuecomment-254985552","issue_url":"https://api.github.com/repos/dompdf/dompdf/issues/1285","id":254985552,"user":{"login":"bsweeney","id":485897,"avatar_url":"https://avatars.githubusercontent.com/u/485897?v=3","gravatar_id":"","url":"https://api.github.com/users/bsweeney","html_url":"https://github.com/bsweeney","followers_url":"https://api.github.com/users/bsweeney/followers","following_url":"https://api.github.com/users/bsweeney/following{/other_user}","gists_url":"https://api.github.com/users/bsweeney/gists{/gist_id}","starred_url":"https://api.github.com/users/bsweeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsweeney/subscriptions","organizations_url":"https://api.github.com/users/bsweeney/orgs","repos_url":"https://api.github.com/users/bsweeney/repos","events_url":"https://api.github.com/users/bsweeney/events{/privacy}","received_events_url":"https://api.github.com/users/bsweeney/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T01:24:09Z","updated_at":"2016-10-20T01:24:09Z","body":"However this comes about we'll probably also need to be more specific about any other class names that aren't specific to dompdf (e.g. when we use the global Exception class)."}}
{"actor":{"display_login":"bsweeney"}}