Сертификаты СРР (тест3)

Image($image_file, 10, 10, 15, », ‘JPG’, », ‘T’, false, 300, », false, false, 0, false, false, false);
// Set font
$this->SetFont(‘helvetica’, ‘B’, 20);
// Title
$this->Cell(0, 15, ‘<< TCPDF Example 003 >>’, 0, false, ‘C’, 0, », 0, false, ‘M’, ‘M’);
}

// Page footer
public function Footer() {
// Position at 15 mm from bottom
$this->SetY(-15);
// Set font
$this->SetFont(‘helvetica’, ‘I’, 8);
// Page number
$this->Cell(0, 10, ‘Page ‘.$this->getAliasNumPage().’/’.$this->getAliasNbPages(), 0, false, ‘C’, 0, », 0, false, ‘T’, ‘M’);
}
}

// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, ‘UTF-8’, false);

// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);

// add a page
$pdf->AddPage();

// set some text to print
$txt = <<Write(0, $txt, », 0, ‘C’, true, 0, false, false, 0);

// ———————————————————

//Close and output PDF document
$pdf->Output(‘example_003.pdf’, ‘I’);

?>

PHP Code Snippets Powered By : XYZScripts.com