Example #1
0
 /**
  * Constructor
  *
  * @param $Pdf CakePdf instance
  */
 public function __construct(CakePdf $Pdf)
 {
     parent::__construct($Pdf);
     if (!defined('DOMPDF_FONT_CACHE')) {
         define('DOMPDF_FONT_CACHE', TMP);
     }
     if (!defined('DOMPDF_TEMP_DIR')) {
         define('DOMPDF_TEMP_DIR', TMP);
     }
     App::import('Vendor', 'CakePdf.DomPDF', array('file' => 'dompdf' . DS . 'dompdf_config.inc.php'));
 }
Example #2
0
 /**
  * Constructor
  *
  * @param $Pdf CakePdf instance
  */
 public function __construct(CakePdf $Pdf)
 {
     parent::__construct($Pdf);
     App::import('Vendor', 'CakePdf.Mpdf', array('file' => 'mpdf' . DS . 'mpdf.php'));
 }
Example #3
0
 /**
  * Constructor
  *
  * @param $Pdf CakePdf instance
  */
 public function __construct(CakePdf $Pdf)
 {
     parent::__construct($Pdf);
 }