Ejemplo n.º 1
0
            $this->Ln();
        } else {
            $this->SetFont('Times', '', 10);
            $this->Cell(0, 5, stripslashes(htmlspecialchars_decode($_cover[0]['cover_note'])), 0, 1, 'L');
            $this->Ln();
        }
    }
}
$pdf = new ResumePdf();
$pdf->AliasNbPages();
$pdf->SetAuthor('YellowElevator.com Resume Generator. Terms of Use subjected.');
$pdf->SetTitle(htmlspecialchars_decode($member->get_name()) . '\'s Resume');
$pdf->SetFontSize(10);
$pdf->AddPage('P');
$pdf->SetDisplayMode('real', 'default');
$pdf->make_title(htmlspecialchars_decode($member->get_name()) . '\'s Resume');
$pdf->Ln();
$pdf->make_title('Contacts');
$pdf->show_contacts($contacts);
$pdf->make_title('Work Experiences');
$pdf->show_experiences($experiences);
$pdf->make_title('Educations');
$pdf->show_educations($educations);
$pdf->make_title('General Skills');
$pdf->show_skills($skills);
$pdf->make_title('Technical/Computer/I.T. Skills');
$pdf->show_technical_skills($technical_skills);
$pdf->make_title('Cover Note');
$pdf->show_cover_note($cover);
$pdf->Close();
$pdf->Output('resume.pdf', 'D');
Ejemplo n.º 2
0
function generate_pdf_file($_contacts, $_cover_note, $_educations, $_experiences, $_skill, $_technical_skills, $_resume_id)
{
    $hash = generate_random_string_of(6);
    $file = $_resume_id . '.' . $hash;
    $pdf = new ResumePdf();
    $pdf->AliasNbPages();
    $pdf->SetAuthor('YellowElevator.com Resume Generator. Terms of Use subjected.');
    $pdf->SetTitle(htmlspecialchars_decode($_contacts['name']) . '\'s Resume');
    $pdf->SetFontSize(10);
    $pdf->AddPage('P');
    $pdf->SetDisplayMode('real', 'default');
    $pdf->make_title(htmlspecialchars_decode($_contacts['name']) . '\'s Resume');
    $pdf->Ln();
    $pdf->make_title('Contacts');
    $pdf->show_contacts($_contacts);
    $pdf->make_title('Work Experiences');
    $pdf->show_experiences($_experiences);
    $pdf->make_title('Educations');
    $pdf->show_educations($_educations);
    $pdf->make_title('General Skills');
    $pdf->show_skills($_skills);
    $pdf->make_title('Technical/Computer/I.T. Skills');
    $pdf->show_technical_skills($_technical_skills);
    $pdf->make_title('Cover Note');
    $pdf->show_cover_note($_cover_note);
    $pdf->Close();
    $pdf->Output($GLOBALS['path_to_copy'] . $file, 'F');
    return $hash;
}