AddPage();
// Add form data to PDF
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Invention Disclosure Form');
$pdf->Ln(20);
foreach ($_POST as $key => $value) {
$pdf->SetFont('Arial','',12);
$pdf->Cell(0,10,ucfirst(str_replace('_', ' ', $key)).': '.$value);
$pdf->Ln(8);
}
$pdf->Output('D','disclosure_form.pdf'); // Force download
exit;
}
get_footer();
?>
Invention Disclosure Form
Invention Disclosure Form