<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once dirname(__FILE__) . '/tcpdf/tcpdf.php';

class PdfPaymentReceipt extends TCPDF
{
    function __construct()
    {
        parent::__construct();
    }
	
		  public function Header()
	  {		
		  $x = $this->GetX();
		  $y = $this->GetY();
		  $style = array();		  
		  
		  $headerData = "ARCHIOCESE OF NAIROBI REGISTERED TRUSTEE<br>". "KANUNGA SELF HELP GROUP<br>". "P.O BOX 727 CODE 00900<br>";
		  
		  //SetFont($family,$style = '',$size = null,$fontfile = '',$subset = 'default',$out = true)
		  // set font
		  $this->SetFont('helvetica', '', 8);
		  
		  //writeHTMLCell ($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=false, $reseth=true, $align='', $autopadding=true)
		  $this->writeHTMLCell(0,0,$x,$y,$headerData,0,0,false,true,'C',true);
		  $this->Line($x,$y+11,$x+80,$y+11,$style);
		  
		  //return $pdf;
		  
	  }
	  
	  	  public function Footer()
	  {
		  $x = $this->GetX();
		  $y = $this->GetY();
		  
		  $headerData = "<b>Save regulary, borrow wisely and repay promptly</b><br>". "Generated by: www.saccomanager.com<br>". "Powered by Ideal Software Applications: www.isa.co.ke";
		  
		  $this->Line($x,$y,$x+80,$y);
		  //SetFont($family,$style = '',$size = null,$fontfile = '',$subset = 'default',$out = true)
		  // set font
		  $this->SetFont('helvetica', '', 8);
		  
		  //writeHTMLCell ($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=false, $reseth=true, $align='', $autopadding=true)
		  $this->writeHTMLCell(0,0,$x,$y,$headerData,0,0,false,true,'L',true);
		  
	  }
}
/*Author:Tutsway.com */  
/* End of file Pdf.php */
/* Location: ./application/libraries/Pdf.php */