Closed shabaz-ejaz closed 7 years ago
marginHeader doesn't do anything, I still have a top header margin in my PDF. Here is my code:
marginHeader
$pdf = new Pdf([ 'mode' => Pdf::MODE_BLANK, 'filename' => 'report_' . date('d-m-Y_his') . '.pdf', 'format' => Pdf::FORMAT_A4, 'marginTop' => '0mm', 'marginHeader' => '0mm', 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_FILE, 'content' => $content, 'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.css', 'cssInline' => '.table{display:none} .header{background: #3f7398; height: 50px; width: 100%;}', 'options' => ['title' => 'Epitomise Report'], 'methods' => [ 'SetHeader'=>['<div class="header"></div>'], 'SetFooter'=>['{PAGENO}'], ] ]); // return the pdf output as per the destination setting $pdf->render();
See screenshot: http://imgur.com/a/y5wVD
Get the updated build. This is resolved via #60.
Sorted after composer update. Thanks for your prompt reply.
marginHeader
doesn't do anything, I still have a top header margin in my PDF. Here is my code:See screenshot: http://imgur.com/a/y5wVD