SetCreator(PDF_CREATOR); $pdf->SetAuthor('Nicola Asuni'); $pdf->SetTitle('TCPDF Example 031'); $pdf->SetSubject('TCPDF Tutorial'); $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); // disable header and footer $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); // set default monospaced font $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); //set margins $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); //set auto page breaks $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- // set font $pdf->SetFont('helvetica', '', 14); // add a page $pdf->AddPage(); $xc = 105; $yc = 55; $r = 40; $pdf->SetFillColor(120, 120, 255); $pdf->PieSector($xc, $yc, $r, 20, 120); $pdf->SetFillColor(120, 255, 120); $pdf->PieSector($xc, $yc, $r, 120, 250); $pdf->SetFillColor(255, 120, 120); $pdf->PieSector($xc, $yc, $r, 250, 20); // --------------------------------------------------------- //Close and output PDF document $pdf->Output('example_031.pdf', 'I'); //============================================================+ // END OF FILE //============================================================+ ?>