$firma_presidente = "firma_us58.jpg";
$firma_usuario = $rs[0][3];
if ($firma_usuario == null) {
    $firma_usuario = "firma_usuario.jpg";
}
$pdf->AliasNbPages();
$pdf->AddPage('L', 'Letter');
$pdf->SetMargins(10, 5, 10);
//imagen de fondo
$pdf->Image("../img/img_certificados/" . $fondo, 0, 0, 300, 300);
//cintillo
$pdf->Image("../img/gob_bolivariano.png", 16, 5, 70, 20);
$pdf->Image("../img/img_certificados/" . $logo, 250, 5, 20, 20);
$pdf->SetFont('Arial', 'B', 20);
$pdf->SetFillColor(159, 182, 205);
$pdf->ln(70);
$pdf->Cell(0, 5, "Se le otorga el siguiente certificado a:", 0, 0, 'C', 0);
$pdf->ln(20);
$pdf->Cell(0, 5, $_SESSION["nom_us"], 0, 0, 'C', 0);
$pdf->ln(20);
$pdf->Cell(0, 5, "Por haber aprobado el curso de " . $aula_virtual, 0, 0, 'C', 0);
$pdf->SetMargins(50, 5, 30);
$pdf->ln(20);
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(30, 5, "Facilitador:", 0, 0, 'C', 0);
$pdf->Cell(140, 5, "Presidente INJ:", 0, 0, 'R', 0);
$pdf->ln();
$pdf->Cell(30, 5, $rs[0][1], 0, 0, 'L', 0);
$pdf->cell(160, 5, $rs[0][4], 0, 0, 'R', 0);
$pdf->ln();
$pdf->Cell(30, 5, $rs[0][2], 0, 0, 'L', 0);