本文整理汇总了PHP中MYPDF::setPrintFooter方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::setPrintFooter方法的具体用法?PHP MYPDF::setPrintFooter怎么用?PHP MYPDF::setPrintFooter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::setPrintFooter方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MYPDF
$this->SetFont('freesans', '', 6, '', true);
$this->Cell(0, 3, mb_strtoupper(api_text("module-diary_export-page"), 'UTF-8') . " " . $this->getAliasNumPage() . " " . mb_strtoupper(api_text("module-diary_export-pageOf"), 'UTF-8') . " " . $this->getAliasNbPages(), 0, 0, 'L', 0);
$this->Cell(0, 3, mb_strtoupper(api_text("module-diary_export-footer"), 'UTF-8') . " " . $training->datetraining, 0, 0, 'R', 0);
//$this->Cell(0,3,mb_strtoupper(api_text("module-diary_export-footer"),'UTF-8')." ".$GLOBALS['module-diary']->number,0,0,'R',0);
}
}
// create new pdf document
$pdf = new MYPDF('L', 'mm', 'A4', true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
//$pdf->SetAuthor(api_account($training->addIdAccount)->name);
$pdf->SetTitle("Dettaglio allenamenti svolti");
//$pdf->SetSubject("Training nr. ".$training->number." - ".api_timestampFormat($request->timestamp,api_text("date")));
// header and footer
$pdf->setPrintHeader(true);
$pdf->setPrintFooter(true);
// set margins
$pdf->SetMargins(10, 30, 10);
$pdf->SetHeaderMargin(30);
$pdf->SetFooterMargin(10);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, 15);
// set font
$pdf->SetFont('freesans', '', 12, '', true);
// add a page
$pdf->AddPage();
// page styles
$pdf->SetTextColor(0);
$pdf->SetFillColor(245);
$fill = FALSE;
// border
示例2: Conectar
$pdf->SetTitle('Programa de Servicio de Salud');
$pdf->SetSubject('Detalle programa paciente');
$pdf->SetKeywords('Paciente, PSS, Programa');
//$pdf->SetHeaderData('../../img/logo.jpg', PDF_HEADER_LOGO_WIDTH,'SERVICIO DE SALUD ARICA ','HOSPITAL REGIONAL DE ARICA Y PARINACOTA');
$pdf->setHeaderFont(array('helvetica', '', 18));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(4, 5, 5, 1);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(0);
$pdf->SetAutoPageBreak(TRUE, 0);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setLanguageArray($l);
$pdf->setFontSubsetting(true);
$pdf->SetFont('helvetica', '', 9, '', true);
$pdf->setPrintFooter(false);
//CREA UNA PAGINA
$pdf->AddPage('L', 'A4');
//CARGA DE CLASES Y METODOS
require_once '../../class/Tipo_Producto.class.php';
$objTipPro = new Tipo_Producto();
require_once '../../class/Nota_Credito.class.php';
$objNot = new Nota_Credito();
require_once '../../class/Conectar.class.php';
$objCon = new Conectar();
require_once '../../class/Arqueo.class.php';
$objArq = new Arqueo();
require_once '../../class/Boleta.class.php';
$objBol = new Boleta();
require_once '../../class/Pagos.class.php';
$objPag = new Pagos();
示例3: generarReporte
public function generarReporte($atributosReceta, $labelCabecera, $labelDetalle, $labelPie, $datosCabecera, $datosDetalle, $datosExamen, $datosExamenUni, $datosGrupo, $datosPie, $modo, $nombreReceta, $parametros)
{
$lblCabecera = array();
$lblDetalle = array();
$lblPie = array();
$styleCL = array();
$styleCD = array();
$styleDL = array();
$styleDD = array();
$stylePL = array();
$stylePD = array();
$o_classGeneral = new classGeneral();
$o_classGeneral->setLabelCabecera($labelCabecera, $atributosReceta);
$styleCL = $o_classGeneral->getStyleCL();
$styleCD = $o_classGeneral->getStyleCD();
$lblCabecera = $o_classGeneral->getLblCabecera();
$o_classGeneral->setLabelDetalle($labelDetalle, $atributosReceta);
$styleDL = $o_classGeneral->getStyleDL();
$styleDD = $o_classGeneral->getStyleDD();
$lblDetalle = $o_classGeneral->getLblDetalle();
$o_classGeneral->setLabelPie($labelPie, $atributosReceta);
$stylePL = $o_classGeneral->getStylePL();
$stylePD = $o_classGeneral->getStylePD();
$lblPie = $o_classGeneral->getLblPie();
$pdf = new MYPDF($parametros["PDF_PAGE_ORIENTATION"], PDF_UNIT, $parametros["PDF_PAGE_FORMAT"], true, 'UTF-8', false);
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Juan Carlos Ludeña Montesinos');
$pdf->SetTitle('Generardor de Reportes');
$pdf->SetSubject('Generardor de Reportes');
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->setPrintHeader($parametros["PRINT_HEADER"]);
$pdf->setPrintFooter($parametros["PRINT_FOOTER"]);
$pdf->SetMargins($parametros["PDF_MARGIN_LEFT"], $parametros["PDF_MARGIN_TOP"], $parametros["PDF_MARGIN_RIGHT"]);
$pdf->SetHeaderMargin($parametros["PDF_MARGIN_HEADER"]);
$pdf->SetFooterMargin($parametros["PDF_MARGIN_FOOTER"]);
$pdf->SetAutoPageBreak($parametros["AUTO_PAGE_BREAK"], $parametros["PDF_MARGIN_BOTTOM"]);
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->SetFont('helvetica', '', 6);
$pdf->AddPage();
$style = array('position' => '', 'align' => 'C', 'stretch' => false, 'fitwidth' => true, 'cellfitalign' => '', 'border' => false, 'hpadding' => 'auto', 'vpadding' => 'auto', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, 'text' => false, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4);
$pdf->write1DBarcode($parametros["CODIGO_DE_BARRAS"], 'C39', 75, 278, 70, 8, 0.4, $style, 'N');
$pdf->CargarDatos($lblCabecera, $lblDetalle, $lblPie, $datosCabecera, $datosDetalle, $datosExamen, $datosExamenUni, $datosGrupo, $datosPie, $styleCL, $styleDL, $stylePL, $styleCD, $styleDD, $stylePD, $modo);
$pdf->lastPage();
$pdf->Output($nombreReceta, 'I');
}
示例4: MYPDF
$reportname=$DB->get_record('block_cobalt_reports',array('id'=>$requestData['id']));
// Position at 15 mm from bottom
// Set font
$this->SetFont('helvetica', 'I', 10);
$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
$this->SetY(-15);
$this->Cell(0, 10,'('.''.$reportname->name.''.')', 0, false, 'C', 0, '', 0, false, 'T', 'M');
}
}
$doc = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$doc->setPrintHeader(true);
$doc->setPrintFooter(true);
// set default header data
$doc->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 059', PDF_HEADER_STRING);
// set header and footer fonts
$doc->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$doc->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$doc->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$doc->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$doc->SetHeaderMargin(PDF_MARGIN_HEADER);
$doc->SetFooterMargin(PDF_MARGIN_FOOTER);
示例5: getModel
function dispNstore_digitalCertificate()
{
$oNstore_digitalModel = getModel('nstore_digital');
$logged_info = Context::get('logged_info');
$cart_srl = Context::get('cart_srl');
if (!Context::get('is_logged')) {
return new Object(-1, 'msg_login_required');
}
$config = $oNstore_digitalModel->getModuleConfig();
$item_info = $oNstore_digitalModel->getPurchasedItem($logged_info->member_srl, $cart_srl);
Context::set('item_info', $item_info);
if (!in_array($item_info->order_status, array('3'))) {
return new Object(-1, '구매완료된 상품이 아닙니다.');
}
// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example 006');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
/*
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 006', PDF_HEADER_STRING);
*/
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
//$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// remove default header/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);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//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('dejavusans', '', 10);
$pdf->SetFont('cid0kr', '', 16);
// table line height
//$pdf->setCellHeightRatio(1.9);
$pdf->setCellHeightRatio(1.7);
// add a page
$pdf->AddPage();
// output the HTML content
$this->setTemplatePath($this->module_path . "tpl");
$oTemplate =& TemplateHandler::getInstance();
$output = $oTemplate->compile($this->module_path . 'tpl', 'certificate');
$pdf->writeHTML($output, true, false, true, false, '');
// reset pointer to the last page
$pdf->lastPage();
//Close and output PDF document
$pdf->Output('certificate.pdf', 'I');
exit;
}
示例6: generarMYPDF
public function generarMYPDF($atributosReceta, $labelCabecera, $labelDetalle, $labelPie, $datosCabecera, $datosDetalle, $datosPie, $modo, $nombreReceta, $parametros)
{
/* ======================================= Obs ============================================ */
// width->0, height->1, top->2, left->3, color->4 TipoLetra=>5 EstiloLetra=>6 TamañoLetra=>6
/* ===================================================================================================== */
$lblCabecera = array();
$lblDetalle = array();
$lblPie = array();
$styleCL = array();
$styleCD = array();
$styleDL = array();
$styleDD = array();
$stylePL = array();
$stylePD = array();
$o_classGeneral = new classGeneral();
$o_classGeneral->setLabelCabecera($labelCabecera, $atributosReceta);
$styleCL = $o_classGeneral->getStyleCL();
$styleCD = $o_classGeneral->getStyleCD();
$lblCabecera = $o_classGeneral->getLblCabecera();
$o_classGeneral->setLabelDetalle($labelDetalle, $atributosReceta);
$styleDL = $o_classGeneral->getStyleDL();
$styleDD = $o_classGeneral->getStyleDD();
$lblDetalle = $o_classGeneral->getLblDetalle();
$o_classGeneral->setLabelPie($labelPie, $atributosReceta);
$stylePL = $o_classGeneral->getStylePL();
$stylePD = $o_classGeneral->getStylePD();
$lblPie = $o_classGeneral->getLblPie();
/* ====================================================================================================== */
// create new PDF document //PDF_PAGE_ORIENTATION(P,L)
$pdf = new MYPDF($parametros["PDF_PAGE_ORIENTATION"], PDF_UNIT, $parametros["PDF_PAGE_FORMAT"], true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Juan Carlos Ludeña Montesinos');
$pdf->SetTitle('Generardor de Reportes');
$pdf->SetSubject('Generardor de Reportes');
//$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 011', PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// remove default header/footer
$pdf->setPrintHeader($parametros["PRINT_HEADER"]);
$pdf->setPrintFooter($parametros["PRINT_FOOTER"]);
//set margins
$pdf->SetMargins($parametros["PDF_MARGIN_LEFT"], $parametros["PDF_MARGIN_TOP"], $parametros["PDF_MARGIN_RIGHT"]);
$pdf->SetHeaderMargin($parametros["PDF_MARGIN_HEADER"]);
$pdf->SetFooterMargin($parametros["PDF_MARGIN_FOOTER"]);
//set auto page breaks
$pdf->SetAutoPageBreak($parametros["AUTO_PAGE_BREAK"], $parametros["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', '', 6);
// add a page
$pdf->AddPage();
//Data loading
// print colored table
$pdf->ColoredTable($lblCabecera, $lblDetalle, $lblPie, $datosCabecera, $datosDetalle, $datosPie, $styleCL, $styleDL, $stylePL, $styleCD, $styleDD, $stylePD, $modo);
$pdf->lastPage();
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output($nombreReceta, 'I');
//$pdf->extractCSSproperties();
//============================================================+
// END OF FILE
//============================================================+
}