AddPage(); // Configurar fuentes $pdf->SetFont('Arial', 'B', 24); $pdf->SetTextColor(0, 0, 0); $background_path = 'assets/img/DIPLOMA.png'; $pdf->Image($background_path, 0, 0, 216, 280); // Solo texto básico para prueba (sin imagen) $pdf->Cell(0, 10, 'DIPLOMA DE PRUEBA', 0, 1, 'C'); // Generar PDF $pdf->Output('I', 'diploma_prueba.pdf'); exit;