本文整理汇总了PHP中mPDF::SetHTMLFooter方法的典型用法代码示例。如果您正苦于以下问题:PHP mPDF::SetHTMLFooter方法的具体用法?PHP mPDF::SetHTMLFooter怎么用?PHP mPDF::SetHTMLFooter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mPDF
的用法示例。
在下文中一共展示了mPDF::SetHTMLFooter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Staff_Detail_pdf
public function Staff_Detail_pdf(){
$timeZoneFormat=$this->Mdl_eilib_common_function->getTimezone();
$this->load->library('pdf');
$pdfresult='';
$STDTL_SEARCH_cpfnumber=$_GET['STDTL_SEARCH_cpfnumber'];
$STDTL_SEARCH_staffexpense_selectquery=$_GET['STDTL_SEARCH_staffexpense_selectquery'];
$STDTL_SEARCH_cpffrom_form=$_GET['STDTL_SEARCH_cpffrom_form'];
$STDTL_SEARCH_cpfto_form=$_GET['STDTL_SEARCH_cpfto_form'];
$STDTL_SEARCH_staffcommentstxt=$_GET['STDTL_SEARCH_staffcommentstxt'];
$emp_first_name=$_GET['emp_first_name'];
$emp_last_name=$_GET['emp_last_name'];
$pdfresult = $this->Mdl_staff_detail_entry_search_update_delete->Staff_Detail_pdf($STDTL_SEARCH_staffexpense_selectquery,$STDTL_SEARCH_cpfnumber,$STDTL_SEARCH_cpffrom_form,$STDTL_SEARCH_cpfto_form,$STDTL_SEARCH_staffcommentstxt,$emp_first_name,$emp_last_name);//$timeZoneFormat,$_GET['EMPSRC_UPD_DEL_lb_designation_listbox'],$_GET['emp_first_name'],$_GET['emp_last_name'],$_GET['EMPSRC_UPD_DEL_ta_mobile'],$_GET['EMPSRC_UPD_DEL_lb_employeename_listbox'],$_GET['EMPSRC_UPD_DEL_lb_searchoption'],$_GET['EMPSRC_UPD_DEL_ta_email'],$_GET['EMPSRC_UPD_DEL_ta_comments']);
$header=$_GET['header'];
$header= str_replace("^","&",$header);
$pdfheader=$header;//'TICKLER HISTORY FOR CUSTOMER:'.$TH_fname.' '.$TH_lname;
$pdf = $this->pdf->load();
$pdf=new mPDF('utf-8','A4-L');
$pdf->SetHTMLHeader('<div style="text-align: center; font-weight: bold;">'.$pdfheader.'</div>', 'O', true);
$pdf->SetHTMLFooter('<div style="text-align: center;">{PAGENO}</div>');
$pdf->WriteHTML($pdfresult);
$pdf->Output($pdfheader.'.pdf', 'D');
$data=$this->Mdl_staff_daily_entry_search_update_delete->Staff_Daily_pdf();
echo json_encode($data);
}
示例2: printRelatorioHTMLPDF
private function printRelatorioHTMLPDF($html)
{
$this->getContext()->getConfiguration()->loadHelpers('Partial');
$mpdf = new mPDF('', 'A4', '', '', 5, 5, 37, 37, 3, 3);
$mpdf->useOnlyCoreFonts = true;
// false is default
$mpdf->SetWatermarkText("PÉROLA NEGRA");
$mpdf->showWatermarkText = true;
$mpdf->watermark_font = 'DejaVuSansCondensed';
$mpdf->watermarkTextAlpha = 0.1;
$mpdf->SetDisplayMode('fullpage');
$stylesheet = file_get_contents('css/relatorios.css');
$mpdf->WriteHTML($stylesheet, 1);
$mpdf->SetHTMLHeader(utf8_encode(get_partial('header')));
$mpdf->SetHTMLFooter(utf8_encode(get_partial('footer')));
$mpdf->SetMargins(0, 0, 65);
$mpdf->WriteHTML(utf8_encode($html));
$mpdf->Output();
}
示例3: Pdfcreation
public function Pdfcreation()
{
$USERSTAMP = $this->Mdl_eilib_common_function->getSessionUserStamp();
$this->load->library('pdf');
$pdfresult = '';
$custname = $this->input->get('custname');
$custid = $this->input->get('custnameid');
$unitno = $this->input->get('unitno');
$cardno = $this->input->get('cardno');
$option = $this->input->get('option');
$pdfresult = $this->Mdl_access_card_view->Pdf_creation($custid, $unitno, $cardno, $option, $USERSTAMP);
$pdfheader = '';
if ($option == 18) {
$pdfheader = 'ACCESS CARD DETAIL FOR CARD NO ' . $cardno;
} else {
if ($option == 21) {
$pdfheader = 'ACCESS CARD DETAIL FOR CUSTOMER ' . $custname;
} else {
if ($option == 31) {
$pdfheader = 'ACCESS CARD DETAILS FOR THE UNIT NUMBER ' . $unitno;
} else {
if ($option == 40) {
$pdfheader = 'ACCESS CARD DETAILS FOR ALL UNITS';
}
}
}
}
$pdf = $this->pdf->load();
$pdf = new mPDF('utf-8', 'A4');
$pdf->SetHTMLHeader('<div style="text-align: center; font-weight: bold;">' . $pdfheader . '</div>', 'O', true);
$pdf->SetHTMLFooter('<div style="text-align: center;">{PAGENO}</div>');
$pdf->WriteHTML($pdfresult);
$pdf->Output($pdfheader . '.pdf', 'D');
}
示例4: getMpdfInstance
public function getMpdfInstance()
{
$mpdf = new \mPDF($this->options['encoding'], $this->options['format'], $this->options['font-size'], $this->options['font'], $this->options['margin-left'], $this->options['margin-right'], $this->options['margin-top'], $this->options['margin-bottom'], $this->options['margin-header'], $this->options['margin-footer'], $this->options['orientation']);
if ($this->footer !== NULL) {
$mpdf->SetHTMLFooter($this->footer);
}
if ($this->header !== NULL) {
$mpdf->SetHTMLHeader($this->header);
}
return $mpdf;
}
示例5: BankttPdfCreation
public function BankttPdfCreation()
{
$UserStamp=$this->Mdl_eilib_common_function->getSessionUserStamp();
$timeZoneFormat= $this->Mdl_eilib_common_function->getTimezone();
$option=$_GET['Searchoption'];
$unit=$_GET['Frominput'];
$customer=$_GET['Todate'];
$header=$_GET['Header'];
$SearchResults=$this->Mdl_ocbc_banktt_entry->Banktt_PDF_SearchResults($option,$UserStamp,$timeZoneFormat,$unit,$customer);
$this->load->library('pdf');
$pdf = $this->pdf->load();
$pdf=new mPDF('utf-8','A4');
$pdf->SetHTMLHeader('<div style="text-align: center; font-weight: bold;">'.$header.'</div>', 'O', true);
$pdf->SetHTMLFooter('<div style="text-align: center;">{PAGENO}</div>');
$pdf->WriteHTML($SearchResults);
$pdf->Output('BANK TT DETAILS.pdf', 'D');
}
示例6: pdf_create
function pdf_create($html, $filename, $stream = true, $textoMarcaDagua = null, $path = null, $css = null, $idEmissor = null, $orientacao = null)
{
$arrayParams = array();
require_once APPPATH . 'helpers/mpdf/mpdf.php';
$CI =& get_instance();
$CI->load->model('comum/empresas_model', 'empresas_model');
$paramVariaveis = 'relatorio_variaveis_padrao';
$paramModelo = 'relatorio_modelo_padrao';
if ($CI->session->userdata('idEmissor') != null) {
$arrayParams = $CI->empresas_model->getParametros($CI->session->userdata('idEmissor'));
} elseif ($idEmissor != null) {
$arrayParams = $CI->empresas_model->getParametros($idEmissor);
} else {
$arrayParams = $CI->empresas_model->getParametros($CI->usuariologado->getIdEmpresa());
}
$mpdf = new mPDF('c', $orientacao == 'L' ? 'A4-L' : '', 9, 'Verdana', 18, 18, 35, 20, 0, 10, $orientacao);
$mpdf->SetTitle($filename);
$mpdf->SetHTMLHeader($CI->load->view('pdfHeader', null, true));
$mpdf->SetHTMLFooter($CI->load->view('pdfFooter', null, true));
if (!empty($css)) {
$mpdf->WriteHTML(file_get_contents($css), 1);
} else {
$mpdf->WriteHTML(file_get_contents('assets/css/report.css'), 1);
}
if ($textoMarcaDagua != null) {
$mpdf->SetWatermarkText($textoMarcaDagua);
$mpdf->showWatermarkText = true;
}
$mpdf->WriteHTML($html, 2);
$mpdf->SetAutoFont();
if ($path !== '' && $path !== null) {
if (!file_exists($path)) {
mkdir($path, 0777, true);
}
}
if ($stream) {
$mpdf->Output($path . DS . $filename . '.pdf', 'F');
} else {
$mpdf->Output();
}
}
示例7: generatePDF
/**
* Generuje PDF, korzysta z bibliotek mPDF
* @return void
*/
private function generatePDF()
{
require_once $this->getConfig("libDir") . "mpdf" . DS . "mpdf.php";
$footer = "<p class='footer'> Wyrażam zgodę na przetwarzanie moich danych osobowych dla celów rekrutacji,\r\n zgodnie z ustawą z dnia 29 sierpnia 1997 r. o ochronie danych osobowych (tj. Dz. U. Nr 101 z 2002 r., poz. 926 z późn. zm.).</p>";
$pdftemp = $this->getConfig("pdftemp");
$randomName = mt_rand(1000000, 9999999);
while (file_exists($pdftemp . $randomName . "." . "pdf")) {
$randomName = mt_rand(1000000, 9999999);
}
$this->_temp['randomPdfName'] = $randomName;
$mpdf = new mPDF('', '', 0, '', 15, 15, 16, 16, 9, 9);
$mpdf->SetHTMLFooter($footer);
$mpdf->WriteHTML($this->_temp['html']);
$mpdf->Output($pdftemp . $randomName . ".pdf", 'F');
}
示例8: _gen_pdf_transkrip
public function _gen_pdf_transkrip($html, $paper, $layoutpage)
{
ob_end_clean();
ini_set('memory_limit', '500000M');
$mpdf = new mPDF('utf-8', $paper, '', '', 15, 15, 15, 15, 0, 5);
$mpdf->debug = false;
$mpdf->SetDisplayMode('fullpage');
/*$footer = array (
'odd' => array (
'C' => array (
'content' => 'Transkrip Akademik ini SAH bila tercetak pada kertas dengan latar belakang LOGO POLTEK AKA dan bukan Photo Copy',
'font-size' => 8,
'font-style' => '',
'font-family' => 'Opensas',
'color'=>'#000000'
),
)
);
$mpdf->SetFooter($footer); */
$mpdf->AddPage($layoutpage);
$mpdf->WriteHTML($html);
$mpdf->SetHTMLFooter('<div style="text-align:center;font-size:10px;font-family:opensans;">Transkrip Akademik ini SAH bila tercetak pada kertas dengan latar belakang LOGO POLTEK AKA dan bukan Photo Copy</div>');
$mpdf->Output();
}
示例9: getClientes
function getClientes()
{
$clientes = Clientes::orderBy('nombres')->orderBy('apellidos')->get();
$reporte = new Reporte("Lista de clientes");
$filas = "";
if ($clientes->count() == 0) {
$tabla = '<div style="text-align:center"><p>Sin datos para mostrar</p></div>';
} else {
$cont = 0;
foreach ($clientes as $item) {
$cont++;
$mod = $cont % 2 == 0;
if ($mod == 1) {
$filas .= '<tr>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->identificacion . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: left;">' . $item->nombres . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: left;">' . $item->apellidos . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: left;">' . $item->correo . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: left;">' . $item->direccion . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->telefono . '</td>' . '</tr>';
} else {
$filas .= '<tr>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->identificacion . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: left;">' . $item->nombres . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: left;">' . $item->apellidos . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: left;">' . $item->correo . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: left;">' . $item->direccion . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->telefono . '</td>' . '</tr>';
}
}
$columnas = array('Identificación', 'Nombres', 'Apellidos', 'Correo', 'Dirección', 'Teléfono');
$tabla = $reporte->getTable($columnas, $filas);
}
$mpdf = new \mPDF('utf-8', 'A4-L', '', '', '15', '15', '28', '18');
$mpdf->SetTitle("Reporte");
$mpdf->SetHTMLHeader($reporte->getHeader());
$mpdf->SetHTMLFooter($reporte->getFooter());
$mpdf->WriteHTML($tabla);
$mpdf->Output('reporte.pdf', 'I');
}
示例10: generate
/**
* Generates the invoice with MPDF lib.
* @param $dest
* @return string
*/
protected function generate($html_sections, $dest, $paid)
{
set_time_limit(0);
$mpdf_filename = BEWPI_LIB_DIR . 'mpdf/mpdf.php';
include $mpdf_filename;
$mpdf_options = $this->get_mpdf_options();
$mpdf = new mPDF($mpdf_options['mode'], $mpdf_options['format'], $mpdf_options['default_font_size'], $mpdf_options['default_font'], $mpdf_options['margin_left'], $mpdf_options['margin_right'], $mpdf_options['margin_top'], $mpdf_options['margin_bottom'], $mpdf_options['margin_header'], $mpdf_options['margin_footer'], $mpdf_options['orientation']);
$mpdf->useOnlyCoreFonts = false;
// false is default
if ((bool) $this->template_options['bewpi_show_payment_status'] && $paid) {
$mpdf->SetWatermarkText(__('Paid', 'woocommerce-pdf-invoices'));
$mpdf->showWatermarkText = true;
}
$mpdf->SetDisplayMode('fullpage');
//$mpdf->useSubstitutions = true;
$mpdf->autoScriptToLang = true;
$mpdf->autoLangToFont = true;
$mpdf->setAutoTopMargin = 'stretch';
$mpdf->setAutoBottomMargin = 'stretch';
$mpdf->autoMarginPadding = 10;
//$mpdf->debug = true;
//$mpdf->showImageErrors = true;
if (!empty($html_sections['header'])) {
$mpdf->SetHTMLHeader($html_sections['header']);
}
if (!empty($html_sections['footer'])) {
$mpdf->SetHTMLFooter($html_sections['footer']);
}
$mpdf->WriteHTML($html_sections['style'] . $html_sections['body']);
$mpdf = apply_filters('bewpi_mpdf', $mpdf);
$mpdf->Output($dest === 'F' ? $this->full_path : $this->filename, $dest);
}
示例11: getUsuarios
function getUsuarios()
{
$usuarios = User::orderBy('type')->orderBy('name')->get();
$reporte = new Reporte("Lista de usuarios");
$filas = "";
if ($usuarios->count() == 0) {
$tabla = '<div style="text-align:center"><p>Sin datos para mostrar</p></div>';
} else {
$cont = 0;
foreach ($usuarios as $item) {
$cont++;
$mod = $cont % 2 == 0;
if ($mod == 1) {
$filas .= '<tr>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: left;">' . $item->name . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->username . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: left;">' . $item->email . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->type . '</td>' . '</tr>';
} else {
$filas .= '<tr>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: left;">' . $item->name . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->username . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: left;">' . $item->email . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->type . '</td>' . '</tr>';
}
}
$columnas = array('Nombres', 'Usuario', 'Correo', 'Tipo');
$tabla = $reporte->getTable($columnas, $filas);
}
$mpdf = new \mPDF('utf-8', 'A4', '', '', '15', '15', '28', '18');
$mpdf->SetTitle("Reporte");
$mpdf->SetHTMLHeader($reporte->getHeader());
$mpdf->SetHTMLFooter($reporte->getFooter());
$mpdf->WriteHTML($tabla);
$mpdf->Output('reporte.pdf', 'I');
}
示例12: getCuentas
public function getCuentas()
{
$facturas = CuentasxpagarModel::where("estado_activo", "=", 1)->join('proveedores', 'proveedores.id', '=', 'cuentasxpagar.proveedor_id')->groupBy('proveedor_id')->select(DB::raw('count(*) as contador, proveedores.identificacion, proveedores.nombres, Sum(saldo) as monto, proveedor_id'))->orderby('proveedores.nombres')->get();
$reporte = new Reporte("Cuentas por pagar");
$filas = "";
if ($facturas->count() == 0) {
$tabla = '<div style="text-align:center"><p>Sin datos para mostrar</p></div>';
} else {
$cont = 0;
foreach ($facturas as $item) {
$cont++;
$mod = $cont % 2 == 0;
if ($mod == 1) {
$filas .= '<tr>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->identificacion . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->nombres . ' ' . $item->apellidos . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->contador . '</td>' . '<td style="background: #E8EDFF; color: #1E252B; font-size: 12px; text-align: center;">' . $item->monto . '</td>' . '</tr>';
} else {
$filas .= '<tr>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->identificacion . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->nombres . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->contador . '</td>' . '<td style="background: #F5F5F5; color: #1E252B; font-size: 12px; text-align: center;">' . $item->monto . '</td>' . '</tr>';
}
}
$columnas = array('Identificación', 'Proveedores', 'Facturas', 'Total');
$tabla = $reporte->getTable($columnas, $filas);
}
$mpdf = new \mPDF('utf-8', 'A4', '', '', '15', '15', '28', '18');
$mpdf->SetTitle("Reporte");
$mpdf->SetHTMLHeader($reporte->getHeader());
$mpdf->SetHTMLFooter($reporte->getFooter());
$mpdf->WriteHTML($tabla);
$mpdf->Output('reporte.pdf', 'I');
}
示例13: DCSU_tablepdf
public function DCSU_tablepdf(){
$timeZoneFrmt= $this->Mdl_eilib_common_function->getTimezone();
$unitno=$this->input->get("DCSUunitno");
$pdfresult=$this->Mdl_unit_door_code_search_update->DCSU_table_pdf($unitno,$timeZoneFrmt);
$pdfheader='DOOR CODE LOGIN DETAILS FOR THE UNIT NUMBER '.$unitno;
$this->load->library('pdf');
$pdf = $this->pdf->load();
$pdf=new mPDF('utf-8','A4');
$pdf->SetHTMLHeader('<div style="text-align: center; font-weight: bold;">'.$pdfheader.'</div>', 'O', true);
$pdf->SetHTMLFooter('<div style="text-align: center;">{PAGENO}</div>');
$pdf->WriteHTML($pdfresult);
$pdf->Output($pdfheader.'.pdf', 'D');
}
示例14: ModelPdfCreation
public function ModelPdfCreation()
{
$header=$_GET['Header'];
$timeZoneFormat= $this->Mdl_eilib_common_function->getTimezone();
$AllmodelDetails=$this->Mdl_ocbc_model_entry_search_update->PDF_AllModels_Details($timeZoneFormat);
$this->load->library('pdf');
$pdf = $this->pdf->load();
$pdf=new mPDF('utf-8','A4');
$pdf->SetHTMLHeader('<div style="text-align: center; font-weight: bold;">'.$header.'</div>', 'O', true);
$pdf->SetHTMLFooter('<div style="text-align: center;">{PAGENO}</div>');
$pdf->WriteHTML($AllmodelDetails);
$pdf->Output($header.'.pdf', 'D');
}
示例15: OCBCPdfCreation
public function OCBCPdfCreation()
{
$Period=$_GET['Period'];
$SubmittedData=$this->Mdl_ocbc_ocbc->OCBC_PDF_Creation($Period);
$header='OCBC RECORDS-'.strtoupper($Period);
$this->load->library('pdf');
$pdf = $this->pdf->load();
$pdf=new mPDF('utf-8','A4');
$pdf->SetHTMLHeader('<div style="text-align: center; font-weight: bold;">'.$header.'</div>', 'O', true);
$pdf->SetHTMLFooter('<div style="text-align: center;">{PAGENO}</div>');
$pdf->WriteHTML($SubmittedData);
$pdf->Output($header.'.pdf', 'D');
}