From 98701960585f0ff59b8de625ee652b8927a3c72c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Fr=C3=B3es=20Franco?= Date: Sun, 24 Mar 2013 12:25:09 -0300 Subject: [PATCH] Adding mPDF construct parameters to the factory to allow specify custom options on intance creation --- Factories/MPdfFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Factories/MPdfFactory.php b/Factories/MPdfFactory.php index 00e8dd8..ecadeae 100644 --- a/Factories/MPdfFactory.php +++ b/Factories/MPdfFactory.php @@ -5,8 +5,8 @@ class MPdfFactory { - public function getMPdf() { - $mpdf = new \mPDF('utf-8', 'A4'); + public function getMPdf($mode = '', $format = 'A4', $default_font_size = 0, $default_font = '', $mgl = 15, $mgr = 15, $mgt = 16, $mgb = 16, $mgh = 9, $mgf = 9, $orientation = 'P') { + $mpdf = new \mPDF($mode, $format, $default_font_size, $default_font, $mgl, $mgr, $mgt, $mgb, $mgh, $mgf, $orientation); return $mpdf; } -} \ No newline at end of file +}