Hi,
i am using moodle 2.9. and i have generated a pdf when a particular event triggerd . the format of pdf i generated is given below
$doc = new pdf;
$doc->setPrintHeader(false);
$doc->setPrintFooter(false);
//$doc->SetFillColor(255, 250, 250);
//$doc->SetFont('helvetica', 'B', 10);
$doc->SetTitle('INVOICE');
$doc->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$doc->SetHeaderMargin(PDF_MARGIN_HEADER);
$doc->SetFooterMargin(PDF_MARGIN_FOOTER);
$doc->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
$doc->SetAutoPageBreak();
$doc->AddPage();
$doc->Image('assets/img/logo.png', '', '', 30, 30, '', '', 'T', false, 300, '', false, false, 1, false, false, false);
$doc->Ln();
$doc->Output('sample','I');
i want to save this pdf to a moodle table. how can i do that?