Advertisement
freddy0512

librayr'

Apr 10th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1.  
  2. <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  3. class m_pdf {
  4.  
  5. function m_pdf()
  6. {
  7. $CI = & get_instance();
  8. log_message('Debug', 'mPDF class is loaded.');
  9. }
  10.  
  11. function load($param=NULL)
  12. {
  13. include_once APPPATH.'/third_party/mpdf/mpdf.php';
  14.  
  15. if ($params == NULL)
  16. {
  17.  
  18. //$param = array("en-GB-x","A4","","",10,10,10,10,6,3); //portrait
  19. //$param = array("en-GB-x","A4-L","","",10,10,10,10,6,3); //lanscape
  20. $param = '"en-GB-x","A4","","",10,10,10,10,6,3,"L"'; // Portrait
  21.  
  22. }
  23.  
  24. return new mPDF($param);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement