Advertisement
jamboljack

mPDF Libray

Jul 13th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Pdf {
  5.    
  6.     function pdf()
  7.     {
  8.         $CI = & get_instance();
  9.         log_message('Debug', 'mPDF class is loaded.');
  10.     }
  11.  
  12.     function load($param=NULL)
  13.     {
  14.         include_once APPPATH.'/third_party/mpdf/mpdf.php';
  15.          
  16.         if ($params == NULL)
  17.         {
  18.             $param = '"en-GB-x","A4","","",10,10,10,10,6,3';      
  19.         }
  20.          
  21.         return new mPDF($param);
  22.     }
  23. }
  24. /* Location: ./application/libraries/Pdf.php */
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement