{"action":"opened","issue":{"url":"https://api.github.com/repos/robregonm/yii2-pdf/issues/10","labels_url":"https://api.github.com/repos/robregonm/yii2-pdf/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/robregonm/yii2-pdf/issues/10/comments","events_url":"https://api.github.com/repos/robregonm/yii2-pdf/issues/10/events","html_url":"https://github.com/robregonm/yii2-pdf/issues/10","id":54761675,"number":10,"title":"Can't change orientation","user":{"login":"Koudy","id":4976467,"avatar_url":"https://avatars.githubusercontent.com/u/4976467?v=3","gravatar_id":"","url":"https://api.github.com/users/Koudy","html_url":"https://github.com/Koudy","followers_url":"https://api.github.com/users/Koudy/followers","following_url":"https://api.github.com/users/Koudy/following{/other_user}","gists_url":"https://api.github.com/users/Koudy/gists{/gist_id}","starred_url":"https://api.github.com/users/Koudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koudy/subscriptions","organizations_url":"https://api.github.com/users/Koudy/orgs","repos_url":"https://api.github.com/users/Koudy/repos","events_url":"https://api.github.com/users/Koudy/events{/privacy}","received_events_url":"https://api.github.com/users/Koudy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-19T13:09:37Z","updated_at":"2015-01-19T13:09:37Z","closed_at":null,"body":"This doesn't work:\r\n```\r\nYii::$container->set(Yii::$app->response->formatters['pdf']['class'], [\r\n      'orientation' => 'Landscape', // This value will be ignored if format is a string value.\r\n      'beforeRender' => function($mpdf, $data) {},\r\n]);\r\n```\r\nI change the page orientation as follows:\r\n```\r\nYii::$container->set(Yii::$app->response->formatters['pdf']['class'], [\r\n\t'format' => 'A4-L',\r\n]);\r\n```"}}