Advertisement
freddy0512

pdf mpdf

May 6th, 2015
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.51 KB | None | 0 0
  1. <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class pdf {
  4.    
  5.     function pdf()
  6.     {
  7.         $CI = & get_instance();
  8.         log_message('Debug', 'mPDF class is loaded.');
  9.     }
  10.  
  11.     function load($params=NULL)
  12.     {
  13.         include_once APPPATH.'/third_party/mpdf/mpdf.php';
  14.          
  15.         if ($params == NULL)
  16.         {
  17.     //my question is here, after check link bellow here where is parameter size paper i goes to link but doesn't make me clear ?
  18.     //did this number 10, 10, 10, 10, 6, 3 setting  ?
  19.     //margin_left 15, margin_right 15, margin_top 16, margin_bottom 16, margin_header 9, margin_footer 9 ?
  20.  
  21.  
  22.           // check the number of parameters here: http://mpdf1.com/manual/index.php?tid=184
  23.           $params = array("en-GB-x", "A4", "", "", 10, 10, 10, 10, 6, 3, NULL);        
  24.         }
  25.          
  26. //what this param, or this define array above ?
  27.         return new mPDF(
  28.           $param[0],
  29.           $param[1],
  30.           $param[2],
  31.           $param[3],
  32.           $param[4],
  33.           $param[5],
  34.           $param[6],
  35.           $param[7],
  36.           $param[8],
  37.           $param[9],
  38.           $param[10]
  39.         );
  40.     }
  41. }
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. //controller
  54.  
  55. // check the number of parameters here: http://mpdf1.com/manual/index.php?tid=184
  56. $overrideParams = array("en-GB-x", "A4", "", "", 10, 10, 10, 10, 6, 3);
  57.  
  58. //my question is that to overide paper right, we already setting this in library why we should write it again ?
  59.  
  60. //any way thanks for respond ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement