$ctr = count($candidate_rec);
    for ($y = 0; $y < count($candidate_rec); $y++) {
        if ($y < $ctr) {
            $posId1 = $position_rec[$x]['posID'];
            $posId2 = $candidate_rec[$y]['id'];
            if ($posId1 == $posId2) {
                $pdf->SetFont('Times', 'B', 9);
                $pdf->Ln();
                $pdf->Cell(40, 5, ' ' . $candidate_rec[$y]['lname'] . ', ' . $candidate_rec[$y]['fname']);
            }
        }
    }
    $pdf->Ln();
}
$voterDtl = new Voter();
$voterDtl->updateBallotTimePrinted($votID1);
$name = $voterDtl->searchVoter($votID1);
$courseDtl = new Course();
$course = $courseDtl->getVotersCourse($votID1);
$program = new Program();
$progCode = $program->getStudentProgram($votID1);
$pdf->Ln();
$pdf->SetFont('Times', 'B', 10);
$pdf->MultiCell(0, 5, 'Voters Information', 1, 'C');
$pdf->SetFont('Times', '', 10);
$pdf->Ln();
$pdf->Cell(10, 4, 'ID No.  ' . $votID1);
$pdf->Ln();
$pdf->Cell(10, 4, 'Name  ' . $name[0]['votLname'] . ', ' . $name[0]['votFname']);
$pdf->Ln();
$pdf->Cell(10, 4, 'Course  ' . $course[0]['course']);