mpdf margin

Solutions on MaxInterview for mpdf margin by the best coders in the world

showing results for - "mpdf margin"
Tim
22 Nov 2016
1<?php
2$mpdf = new \Mpdf\Mpdf([
3			'mode' => '',
4			'format' => 'A4',
5			'default_font_size' => 0,
6			'default_font' => '',
7			'margin_left' => 15,
8			'margin_right' => 15,
9			'margin_top' => 16,
10			'margin_bottom' => 16,
11			'margin_header' => 9,
12			'margin_footer' => 9,
13			'orientation' => 'P',
14		]);
15$mpdf->WriteHTML('Hello World');
16
17// Saves file on the server as 'filename.pdf'
18$mpdf->Output('filename.pdf', \Mpdf\Output\Destination::FILE);
19