?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/helpers/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/helpers/pdf_helper.php |
<?php function prep_pdf($orientation = 'portrait') { $CI = & get_instance(); $CI->cezpdf->selectFont(base_url() . '/fonts'); $image=base_url() .'/assets/images/header.jpg'; $CI->cezpdf->ezImage($image,'10','200','center','left',''); $all = $CI->cezpdf->openObject(); $CI->cezpdf->saveState(); $CI->cezpdf->setStrokeColor(0,0,0,1); if($orientation == 'portrait') { $CI->cezpdf->ezSetMargins(50,70,50,50); $CI->cezpdf->ezStartPageNumbers(500,28,8,'','{PAGENUM}',1); $CI->cezpdf->line(20,40,578,40); //$CI->cezpdf->addText(50,32,8,'Printed on ' . date('m/d/Y h:i:s a')); $CI->cezpdf->addText(70,22,9,'<b>P O Box 200203, Doha, Qatar. Email : info@savoysinsurance.com. Website : www.savoysinsurance.com</b>'); } else { $CI->cezpdf->ezStartPageNumbers(750,28,8,'','{PAGENUM}',1); $CI->cezpdf->line(20,40,800,40); //$CI->cezpdf->addText(50,32,8,'Printed on ' . date('m/d/Y h:i:s a')); $CI->cezpdf->addText(70,22,9,'<b>P O Box 200203, Doha, Qatar. Email : info@savoysinsurance.com. Website : www.savoysinsurance.com</b>'); } $CI->cezpdf->restoreState(); $CI->cezpdf->closeObject(); $CI->cezpdf->addObject($all,'all'); } ?>