当前位置: 首页>>代码示例>>PHP>>正文


PHP mPDF::SetHTMLHeader方法代码示例

本文整理汇总了PHP中mPDF::SetHTMLHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP mPDF::SetHTMLHeader方法的具体用法?PHP mPDF::SetHTMLHeader怎么用?PHP mPDF::SetHTMLHeader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mPDF的用法示例。


在下文中一共展示了mPDF::SetHTMLHeader方法的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);



    }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:28,代码来源:Ctrl_Staff_Detail_Entry_Search_Update_Delete.php

示例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();
 }
开发者ID:robertcosta,项目名称:symfony-condomino,代码行数:19,代码来源:actions.class.php

示例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');
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:34,代码来源:Ctrl_Access_Card_View.php

示例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;
 }
开发者ID:albe,项目名称:Famelo.PDF,代码行数:11,代码来源:MpdfGenerator.php

示例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');
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:17,代码来源:Ctrl_Ocbc_Banktt_Search_Update.php

示例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();
    }
}
开发者ID:smolareck,项目名称:hmvcadmin,代码行数:41,代码来源:mpdf_helper.php

示例7: 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&#243;n', 'Nombres', 'Apellidos', 'Correo', 'Direcci&#243;n', 'Tel&#233;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');
 }
开发者ID:luigilapa,项目名称:CuentasFacturas,代码行数:28,代码来源:ReportesClientesController.php

示例8: 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');
 }
开发者ID:luigilapa,项目名称:CuentasFacturas,代码行数:28,代码来源:ReportesUsuariosController.php

示例9: 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&#243;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');
 }
开发者ID:luigilapa,项目名称:CuentasFacturas,代码行数:28,代码来源:ReportesCuentasPagarController.php

示例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);
 }
开发者ID:setasss,项目名称:woocommerce-pdf-invoices,代码行数:37,代码来源:abstract-bewpi-document.php

示例11: 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');
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:13,代码来源:Ctrl_Unit_Door_Code_Search_Update.php

示例12: 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');
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:13,代码来源:Ctrl_Ocbc_Ocbc.php

示例13: 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');
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:13,代码来源:Ctrl_Ocbc_Model_Entry_Search_Update.php

示例14: User_Details_pdf

 public function User_Details_pdf(){
     $UserStamp=$this->Mdl_eilib_common_function->getSessionUserStamp();
     $timeZoneFormat=$this->Mdl_eilib_common_function->getTimezone();
     $this->load->library('pdf');
     $pdfresult='';
     $pdfresult=$this->Mdl_access_rights_user_search_details->User_Details_pdf($timeZoneFormat);
     $pdfheader='USER SEARCH DETAILS';
     $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');
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:14,代码来源:Ctrl_Access_Rights_User_Search_Details.php

示例15: EMPLOYEE_pdf

    public  function EMPLOYEE_pdf(){

        $timeZoneFormat=$this->Mdl_eilib_common_function->getTimezone();
        $this->load->library('pdf');
        $pdfresult='';
        $pdfresult=$this->Mdl_staff_employee_entry_search_update_delete->Employee_pdf($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'];
        $pdfheader=$header;//'TICKLER HISTORY FOR CUSTOMER:'.$TH_fname.' '.$TH_lname;
        $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');
    }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:15,代码来源:Ctrl_Staff_Employee_Entry_Search_Update_Delete.php


注:本文中的mPDF::SetHTMLHeader方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。