{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-mpdf/issues/61","repository_url":"https://api.github.com/repos/kartik-v/yii2-mpdf","labels_url":"https://api.github.com/repos/kartik-v/yii2-mpdf/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-mpdf/issues/61/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-mpdf/issues/61/events","html_url":"https://github.com/kartik-v/yii2-mpdf/issues/61","id":243980962,"number":61,"title":"marginHeader not working","user":{"login":"shabaz001","id":29374282,"avatar_url":"https://avatars2.githubusercontent.com/u/29374282?v=4","gravatar_id":"","url":"https://api.github.com/users/shabaz001","html_url":"https://github.com/shabaz001","followers_url":"https://api.github.com/users/shabaz001/followers","following_url":"https://api.github.com/users/shabaz001/following{/other_user}","gists_url":"https://api.github.com/users/shabaz001/gists{/gist_id}","starred_url":"https://api.github.com/users/shabaz001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shabaz001/subscriptions","organizations_url":"https://api.github.com/users/shabaz001/orgs","repos_url":"https://api.github.com/users/shabaz001/repos","events_url":"https://api.github.com/users/shabaz001/events{/privacy}","received_events_url":"https://api.github.com/users/shabaz001/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-19T09:38:59Z","updated_at":"2017-07-19T10:01:09Z","closed_at":"2017-07-19T09:51:32Z","body":"`marginHeader` doesn't do anything, I still have a top header margin in my PDF. Here is my code:\r\n\r\n```\r\n$pdf = new Pdf([\r\n            'mode' => Pdf::MODE_BLANK,\r\n            'filename' => 'report_' . date('d-m-Y_his') . '.pdf',\r\n            'format' => Pdf::FORMAT_A4,\r\n            'marginTop' => '0mm',\r\n            'marginHeader' => '0mm',\r\n            'orientation' => Pdf::ORIENT_PORTRAIT,\r\n            'destination' => Pdf::DEST_FILE,\r\n            'content' => $content,\r\n            'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.css',\r\n            'cssInline' => '.table{display:none} .header{background: #3f7398; height: 50px; width: 100%;}',\r\n            'options' => ['title' => 'Epitomise Report'],\r\n            'methods' => [\r\n                'SetHeader'=>['<div class=\"header\"></div>'],\r\n                'SetFooter'=>['{PAGENO}'],\r\n            ]\r\n        ]);\r\n\r\n\r\n        // return the pdf output as per the destination setting\r\n         $pdf->render();\r\n```\r\n\r\nSee screenshot: [http://imgur.com/a/y5wVD](http://imgur.com/a/y5wVD)"},"comment":{"url":"https://api.github.com/repos/kartik-v/yii2-mpdf/issues/comments/316336025","html_url":"https://github.com/kartik-v/yii2-mpdf/issues/61#issuecomment-316336025","issue_url":"https://api.github.com/repos/kartik-v/yii2-mpdf/issues/61","id":316336025,"user":{"login":"shabaz001","id":29374282,"avatar_url":"https://avatars2.githubusercontent.com/u/29374282?v=4","gravatar_id":"","url":"https://api.github.com/users/shabaz001","html_url":"https://github.com/shabaz001","followers_url":"https://api.github.com/users/shabaz001/followers","following_url":"https://api.github.com/users/shabaz001/following{/other_user}","gists_url":"https://api.github.com/users/shabaz001/gists{/gist_id}","starred_url":"https://api.github.com/users/shabaz001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shabaz001/subscriptions","organizations_url":"https://api.github.com/users/shabaz001/orgs","repos_url":"https://api.github.com/users/shabaz001/repos","events_url":"https://api.github.com/users/shabaz001/events{/privacy}","received_events_url":"https://api.github.com/users/shabaz001/received_events","type":"User","site_admin":false},"created_at":"2017-07-19T10:01:09Z","updated_at":"2017-07-19T10:01:09Z","body":"Sorted after composer update. Thanks for your prompt reply."}}
{"actor":{"display_login":"shabaz001"}}