$pdf->SetTitle("First Communion Certificate");
$pdf->SetSubject("First Communion Certificate");
$pdf->SetKeywords("PDF");
$parish = Parish::get();
$pdf->setPrintHeader($parish->cert_header);
$pdf->setPrintFooter(false);
#$pdf->AliasNbPages();
$pdf->AddPage();
if ($parish->cert_header) {
    $comm_src = dirname(__FILE__) . "/../../../images/holy-commn-remember.jpg";
    $pdf->Image($comm_src, 1, 6, '', 12, 'JPG', '', 'T', false, 300, 'C', false, false, 0, false, false, false);
    $pdf->Cell(0, 14, "", 0, 1);
} else {
    $pdf->Cell(0, 19, "", 0, 1);
}
$pdf->SetFont("times", "R", 20);
$pdf->Cell(0, 0, "Remembrance Of First Holy Communion", 0, 1, 'C');
$pdf->SetFont("courier", "I", 11);
$firstCommunion = $model->firstCommunion;
$pdf->Cell(0, 1, '', 0, 1);
$pdf->Cell(4, 0, "", 0, 0);
$count = 0;
function draw_line($pdf, $x1 = 5.0)
{
    global $count;
    $pdf->Line($x1, 22.6 + $count * 0.8, 16, 22.6 + $count * 0.8, array('width' => 0.01, 'dash' => 3));
    ++$count;
}
$pdf->Cell(0, 0.8, $firstCommunion->name, 0, 1, 'L');
draw_line($pdf);
$pdf->Cell(4, 0, "", 0, 0);
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
/* @var $this MarriageCertificateController */
/* @var $model MarriageCertificate */
$pdf = new CertTcPdf('P', 'cm', 'A4', true, 'UTF-8');
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor("Terence Monteiro");
$pdf->SetTitle("Marriage Certificate");
$pdf->SetSubject("Marriage Certificate");
$pdf->SetKeywords("PDF");
$parish = Parish::get();
$pdf->setPrintHeader($parish->cert_header);
$pdf->setPrintFooter(false);
#$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont("times", "R", 22);
$pdf->Cell(0, 3, "", 0, 1);
$pdf->Cell(0, 0, "MARRIAGE CERTIFICATE", 0, 1, 'C');
$pdf->SetFont("times", "B", 11);
$pdf->Cell(0, 0, "EXTRACT FROM THE REGISTER OF MARRIAGES", 0, 1, 'C');
$pdf->SetFont("courier", "R", 11);
$pdf->Cell(0, 0.5, '', 0, 1);
$pdf->Cell(3.5, 0, '', 0, 0);
$marriage = $model->marriage;
$pdf->Cell(0, 0, "REF. NO. " . $marriage->ref_no);
$pdf->Cell(0, 1.1, '', 0, 1);
$count = 0;
function draw_line($pdf)
{
    global $count;
    $pdf->Line(10.2, 7.6 + $count * 0.7, 16, 7.6 + $count * 0.7, array('width' => 0.01, 'dash' => 3));