public function encabezado($titulo = null, $entidad = null, $fecha = null) { $config = sfTCPDFPluginConfigHandler::loadConfig('orange'); // pdf object $pdf = new sfTCPDF(); $pdf->setPageFormat('LETTER'); $pdf->SetFontSize(8); $pdf->SetTextColor(255, 255, 255, 0); $pdf->SetDrawColor(192, 192, 192, 0); //$pdf->SetCellPadding(30); $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', 8)); $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, 'Generado por:' . $entidad, 'Reporte de Pago' . "\n" . $fecha); $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', 8)); $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); $pdf->SetFontSize(9.5); $pdf->setPageFormat('A4'); return $pdf; }