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


PHP Pdf::writeHTML方法代码示例

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


在下文中一共展示了Pdf::writeHTML方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: reporte_medicamentos

 /** @Functions que permiten generar PDF's con reportes
     /**************************************************************************/
 public function reporte_medicamentos()
 {
     // Carga de datos
     $data_meds = $this->gestion->get_medicamentos();
     $tmp_meds = $this->templates->tmp_reporte_medicamentos($data_meds);
     // Generacion de PDF
     $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
     $pdf->SetCreator(PDF_CREATOR);
     $pdf->SetAuthor('Sysmedcloud');
     $pdf->SetTitle('Reporte de Medicamentos');
     $pdf->SetSubject('');
     $pdf->SetKeywords('');
     $pdf->SetHeaderData('logo.png', PDF_HEADER_LOGO_WIDTH + 20, 'Reporte', 'Medicamentos', array(0, 64, 255), array(0, 64, 128));
     $pdf->setFooterData($tc = array(0, 64, 0), $lc = array(0, 64, 128));
     $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->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
     $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
     $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     $pdf->setFontSubsetting(true);
     $pdf->SetFont('Helvetica', '', 8, '', true);
     $pdf->AddPage();
     $pdf->writeHTML($tmp_meds, true, 0, true, 0);
     $nombre_archivo = utf8_decode("reporte-medicamentos-" . date("d") . "_" . date("m") . "_" . date("Y") . ".pdf");
     $pdf->Output($nombre_archivo, 'I');
 }
开发者ID:sysmedcloud,项目名称:sysmedcloud_beta,代码行数:31,代码来源:Reportes.php

示例2: GeneraPdf

 public function GeneraPdf($html, $nombre)
 {
     $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
     $pdf->SetCreator(PDF_CREATOR);
     $pdf->SetAuthor('');
     $pdf->SetTitle('');
     $pdf->SetSubject('');
     $pdf->SetKeywords('');
     $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE . '', PDF_HEADER_STRING, array(255, 255, 255), array(255, 255, 255));
     $pdf->SetFooterData($tc = array(0, 64, 0), $lc = array(255, 255, 255));
     $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->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
     $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
     $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     $pdf->setFontSubsetting(true);
     $pdf->SetFont('helvetica', '', 10, '', true);
     $pdf->AddPage();
     $pdf->writeHTML($html, true, false, true, false, '');
     $nombre_archivo = utf8_decode($nombre . date('Y-m-d-His') . ".pdf");
     $pdf->Output($nombre_archivo, 'I');
 }
开发者ID:escipion27,项目名称:Garantias,代码行数:25,代码来源:pdf_controller.php

示例3: index

    function index()
    {
        $this->load->library('Pdf');
        $userdata = $this->session->all_userdata();
        $data['email'] = $userdata['email'];
        $this->load->model('tenants_model');
        $data['tenant_detail'] = $this->tenants_model->get_unit($data['email']);
        $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
        $pdf->SetTitle('Rent Receipt');
        $pdf->SetHeaderMargin(30);
        $pdf->SetTopMargin(20);
        $pdf->setFooterMargin(20);
        $pdf->SetAutoPageBreak(true);
        $pdf->SetAuthor('Rentit Agency');
        $pdf->SetDisplayMode('real', 'default');
        $pdf->AddPage();
        $html = <<<EOD
<table cellspacing="3" cellpadding="6" border="">

 

\t\t  
\t\t  
EOD;
        $pdf->Ln();
        $html .= "<tr><td>";
        $html .= "<b>RENTIT AGENCY<br />RENT RECEIPT</b>";
        $html .= "</td><td>";
        $this->load->helper('date');
        $datestring = "%Y-%m-%d ";
        $date = mdate($datestring);
        $html .= "<b>Date Received: </b> {$date} <br />";
        $html .= "<br /><b>Received From: </b> ";
        $html .= $userdata['email'];
        '<br />';
        $html .= "<br /><br/><b>The sum of: </b> KeS ";
        $html .= $userdata['amount'];
        '<br />';
        $html .= "</td></tr>";
        $html .= "<tr><td colspan=2>";
        $html .= "<b>For Rent at:</b> ";
        $html .= $data['tenant_detail'][0]['block_name'];
        $html .= " house, ";
        $html .= $data['tenant_detail'][0]['unitname'];
        ',';
        $html .= "<br /><br /><b>Rent Period Starting</b>: ";
        $html .= $data['tenant_detail'][0]['occupation_date'];
        ',<br />';
        $html .= "<br /><br /><b>Received by: </b> Rentit Agency";
        $html .= "</td></tr>";
        $html .= "</table>";
        $pdf->writeHTML($html, true, false, false, false, '');
        ob_clean();
        $pdf->Output('Receipt.pdf', 'I');
    }
开发者ID:FaithMaina,项目名称:Rentit,代码行数:55,代码来源:receipt.php

示例4: index

 public function index()
 {
     if (strlen($this->getParam()) == 0) {
         App::redirectUrl($this->registry->router->generate('frontend.home', true));
     }
     $product = App::getModel('product/product')->getProductAndAttributesById((int) $this->registry->core->getParam());
     $range = App::getModel('product/product')->getRangeType((int) $this->registry->core->getParam());
     App::getModel('product/product')->getPhotos($product);
     if (empty($product)) {
         App::redirectUrl($this->registry->router->generate('frontend.home', true));
     }
     $product['photo']['normal'][0] = 'design/' . str_replace(DESIGNPATH, '', $product['photo']['normal'][0]);
     $selectAttributes = App::getModel('product/product')->getProductAttributeGroups($product);
     $attset = App::getModel('product/product')->getProductVariant($product);
     $this->registry->template->assign('product', $product);
     $this->registry->template->assign('attributes', $selectAttributes);
     $this->registry->template->assign('attset', $attset);
     $this->registry->template->assign('ROOTPATH', ROOTPATH);
     $htmlcontent = $this->registry->template->fetch($this->loadTemplate('index.tpl'));
     $pdf = new Pdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true);
     $pdf->SetCreator(PDF_CREATOR);
     $pdf->SetAuthor('Gekosale');
     $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
     $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->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
     $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
     $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     $pdf->setLanguageArray(1);
     $pdf->SetFont('dejavusans', '', 10);
     $pdf->AddPage();
     $pdf->writeHTML($htmlcontent, true, 0, true, 0);
     @ob_clean();
     $pdf->Output($product['seo'], 'D');
 }
开发者ID:krisldz,项目名称:Gekosale2,代码行数:38,代码来源:productprint.php

示例5: MatricRollNoGroupwise

 public function MatricRollNoGroupwise()
 {
     // DebugBreak()  ;
     $this->load->helper('url');
     //Load the library
     $this->load->library('html2pdf');
     $grp_cd = $this->uri->segment(3);
     $sess = 1;
     $class = 10;
     $year = 2016;
     $this->load->library('session');
     $Logged_In_Array = $this->session->all_userdata();
     $user = $Logged_In_Array['logged_in'];
     //DebugBreak();
     $this->load->library('Pdf');
     $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
     $pdf->setHeaderData('', 0, '', '', array(0, 0, 0), array(255, 255, 255));
     $pdf->SetPrintHeader(false);
     $pdf->SetPrintFooter(false);
     $pdf->SetTitle('Matric Roll Number Slip');
     $pdf->SetHeaderMargin(1);
     $pdf->SetTopMargin(1);
     $pdf->setFooterMargin(1);
     $pdf->SetFont('helvetica', '', 8);
     $pdf->SetAutoPageBreak(TRUE, 0);
     $pdf->SetAuthor('BiseGrw');
     $pdf->SetMargins(4, 1, 4, true);
     $Inst_Id = $user['Inst_Id'];
     $this->load->model('RollNoSlip_model');
     // DebugBreak();
     $studeninfo = array('data' => $this->RollNoSlip_model->get10thrslipWith_Grp_CD($class, $year, $sess, $grp_cd, $Inst_Id));
     $template_pdf = '';
     $totalslips = count($studeninfo['data']['slip']);
     $studentslip = array();
     //DebugBreak();
     for ($i = 0; $i < count($studeninfo['data']['info']); $i++) {
         $pdf->AddPage();
         $rno = $studeninfo['data']['info'][$i]['Rno'];
         $temp = "{$rno}@{$class}@{$sess}@{$year}@{$Inst_Id}";
         $image = $this->set_barcode($temp);
         $studeninfo['data']['info'][$i]['barcode'] = $image;
         for ($j = 0; $j < $totalslips; $j++) {
             if ($rno == $studeninfo['data']['slip'][$j]['rno']) {
                 $studeninfo['data']['info'][$i]['slips'][] = $studeninfo['data']['slip'][$j];
             }
         }
         // DebugBreak();
         $html = $this->load->view('RollNoSlip/MatricRollNoCombine', $studeninfo['data']['info'][$i], true);
         $pdf->writeHTML($html, true, false, true, false, '');
         if ($i == 0) {
             break;
         }
     }
     $pdf->Output('pdfexample.pdf', 'I');
     //$this->html2pdf->html($this->load->view('RollNoSlip/MatricRollNoCombine', $studeninfo['data'], true));
     //  $this->html2pdf->html($template_pdf);
     /* if($this->html2pdf->create('downlaod')) {
        if($class == 10)
        redirect('RollNoSlip/TenthStd');
        else if($class == 9)
        redirect('RollNoSlip/NinthStd');
        }      */
 }
开发者ID:shahid1376,项目名称:adminbise,代码行数:63,代码来源:RollNoSlip_.php

示例6: printAbstract

 public function printAbstract($title = "", $vendorName, $total, $startDate, $endDate)
 {
     set_time_limit(0);
     $pdf = new Pdf("P", PDF_UNIT, "A4", true, 'UTF-8', false);
     $date = date('d-m-Y');
     $filename = $vendorName . "_" . $startDate . "_" . $endDate . "_" . $date;
     // set header and footer fonts
     // set margins
     $pdf->setTitle('');
     $pdf->Header();
     $pdf->Footer();
     $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT, true);
     $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
     //$pdf->SetMargins (15, 27, 15, true);
     $pdf->SetFont('times', '', 14);
     $pdf->SetAutoPageBreak(TRUE, 50);
     $pdf->AddPage();
     $pdf->Cell(0, 0, 'ENGINEERING COLLEGE HOSTELS', 0, 0, 'C');
     $pdf->Ln();
     $pdf->SetFont('times', '', 12);
     $pdf->Cell(0, 0, 'COLLEGE OF ENGINEERING, GUINDY', 0, 0, 'C');
     $pdf->Ln();
     $pdf->Cell(0, 0, 'ANNA UNIVERSITY, CHENNAI-25', 0, 0, 'C');
     $pdf->Ln();
     $pdf->SetFont('times', '', 14);
     $pdf->Cell(0, 0, 'ABSTRACT OF SUPPLIER\'S BILL', 0, 0, 'C');
     $pdf->Ln();
     $pdf->Ln();
     $pdf->SetFont('times', '', 14);
     $text = "BILL RECEIVED FROM " . $vendorName . " FOR THE SUPPLIES MADE";
     $pdf->Cell(0, 0, $text, 0, 0, 'L');
     if ($startDate == $endDate) {
         $text = "ON " . $startDate;
     } else {
         $text = "BETWEEN " . $startDate . " AND " . $endDate;
     }
     $pdf->Ln();
     $pdf->Cell(0, 0, $text, 0, 0, 'L');
     $pdf->SetFont('times', '', 12);
     $html = "";
     //create html
     $html .= '<html><head><title>Report</title>';
     $html .= '</head><body >';
     $base_path = base_url();
     $html .= '<style>tr,th{border: 1px solid black;}</style>';
     $html .= $_POST['toSend'];
     $html .= '</body></html>';
     $pdf->writeHTML($html, false, false, false, false, '');
     $inWords = $this->convert_number($total);
     $text = "BILL PASSED FOR RUPEES " . $inWords;
     $pdf->SetFont('times', '', 14);
     $pdf->Ln();
     $pdf->Cell(0, 0, $text, 0, 0, 'L');
     $pdf->Ln();
     $pdf->Ln();
     $pdf->Ln();
     $pdf->Ln();
     $pdf->Ln();
     $html = '<table><tr><th>Store Manager</th><th>Deputy Warden</th><th>Hostel Warden</th></tr></table>';
     $pdf->writeHTML($html, false, false, false, false, '');
     //	$pdf->Output('C:\xampp\htdocs\cegMessStore\reports\report.pdf', 'FD');  //save pdf
     if (strpos($title, "Vegetable") !== false) {
         $dir = "Vegetable Abstract/" . $filename . ".pdf";
     } else {
         $dir = "Items Abstract/" . $filename . ".pdf";
     }
     $pdf->Output("/var/www/cegMessStore/reports/" . $dir, 'FD');
     //save pdf
     //		$pdf->Output('file.pdf', 'I'); // show pdf
     return true;
 }
开发者ID:arparthasarathi,项目名称:cegMessStore,代码行数:71,代码来源:Reports.php

示例7: exportInvoice

    public function exportInvoice($ids)
    {
        $pdf = new Pdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8');
        $pdf->SetCreator(PDF_CREATOR);
        $pdf->SetAuthor('Gekosale');
        $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
        $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->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
        $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
        $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
        $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
        $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
        $pdf->setLanguageArray(1);
        $pdf->SetFont('dejavusans', '', 10);
        $sql = 'SELECT 
					*
				FROM invoice
				WHERE 
					idinvoice IN (' . implode(',', $ids) . ')';
        $stmt = Db::getInstance()->prepare($sql);
        $stmt->execute();
        $Data = array();
        while ($rs = $stmt->fetch()) {
            switch ($rs['contenttype']) {
                case 'html':
                    $data = $rs['contentcopy'];
                    $pdf->AddPage();
                    $pdf->writeHTML($data, true, 0, true, 0);
                    break;
            }
        }
        @ob_clean();
        $pdf->Output('Faktury z ' . date('Y-m-d'), 'D');
    }
开发者ID:krisldz,项目名称:Gekosale2,代码行数:36,代码来源:invoice.php

示例8: Pdf

    function export_pdf39()
    {
        $this->load->library('pdf');
        ob_clean();
        $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
        $tbl = '';
        $tbl .= '
				<h3><u>MASTER DIAGNOSA</u></h3>
				<table border="0"  cellpadding="0" cellspacing="0" >
				 <tr >';
        $tbl .= '<th  align="center" bgcolor="#359AFF" width="30" >NO</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="100" >DIAG_KODE</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="230" >DIAG_NAMA</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="80" >ST_DIAG</th>';
        $tbl .= '</tr>';
        $sql = "select diag_kode, diag_nama, diag_level,case when diag_aktif=1 then 'aktif' else 'tidak aktif' end \nas st_diag,  diag_aktif,diag_id from billing.b_ms_diagnosa";
        $data = $this->m_global->grid_view($sql)->result_array();
        $no = 1;
        foreach ($data as $row) {
            $bg = $no % 2;
            if ($bg == 0) {
                $bg = ' bgcolor="#E1F0FF" ';
            } else {
                $bg = ' bgcolor="#FFFFFF" ';
            }
            $tbl .= '
					<tr>
					<td ' . $bg . '  align="center" width="30">' . $no . '</td>';
            $tbl .= '<td ' . $bg . '  width="100" >' . $row['diag_kode'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="230" >' . $row['diag_nama'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="80" >' . $row['st_diag'] . '</td>';
            $tbl .= '</tr>';
            $no++;
        }
        $tbl .= '</table>';
        $pdf->AddPage();
        $pdf->SetFont('helvetica', '', 8);
        $pdf->writeHTML($tbl, true, false, false, false, '');
        $pdf->Output('example_048.pdf', 'I');
    }
开发者ID:sururbadrus,项目名称:charismasimrs,代码行数:40,代码来源:Bms_diag_model.php

示例9: generate_letter_support_pdf

 public function generate_letter_support_pdf($arrData, $pData)
 {
     $this->load->model('setup_model');
     $letter = $this->setup_model->get_by(array('name' => 'Letter'));
     $ward_letter = $this->setup_model->get_by(array('name' => 'Ward Leader Letter'));
     $support_letter = $this->setup_model->get_by(array('name' => 'Letter of Support'));
     $this->load->library('pdf');
     $pdf = new Pdf('L', 'mm', 'LETTER', true, 'ISO-8859-1', false);
     $pdf->SetTitle($pData['brgy'] . '-LETTER-' . date("YmdHis"));
     $pdf->SetHeaderMargin(0);
     $pdf->SetTopMargin(10);
     $pdf->SetLeftMargin(20);
     $pdf->SetRightMargin(20);
     $pdf->setFooterMargin(10);
     $pdf->SetAutoPageBreak(true, 10);
     $pdf->SetFontSize(10);
     $pdf->SetAuthor('Author');
     // set font
     $pdf->SetFont('freeserif', '', 10);
     $ctr = 0;
     foreach ($arrData as $result) {
         if ($ctr % 2 == 0) {
             $pdf->AddPage('P', 'LEGAL');
             $pdf->setY(15);
         } else {
             $pdf->setY(190);
         }
         $result = (object) $result;
         $voter_name = explode(",", htmlentities($result->full_name));
         $html = "";
         $html .= "<br/>";
         $html .= '<b>' . trim(htmlentities($result->full_name)) . '</b>';
         $html .= "<br/>";
         $html .= '<b>' . trim($result->brgy) . '</b>';
         $html .= "<br/>";
         $html .= '<b>' . trim($result->precinct) . '</b>';
         $html .= "<br/>";
         $html .= "<br/>";
         $html .= 'Minamahal na <b>' . (trim($result->gender) == 'M' ? 'G.' : 'Bb/Gng.') . " " . ucfirst(trim(strtolower(htmlentities($voter_name[0])))) . ":</b>";
         $html .= "<br/>";
         //            $html .= $is_ward ? $ward_letter['content'] : $letter['content'];
         $html .= $support_letter['content'];
         $html .= "<br/>";
         $html .= '<table>' . '<tr>' . '<td width="60%"></td>' . '<td>Gumagalang, </td>' . '</tr>' . '<tr>' . '<td width="60%"></td>' . '</tr>' . '<tr>' . '<td width="50%" align="center"><b> <img src="' . base_url('assets/images/alexander_pajarillo_sign.jpg') . '" height="55" width="150"/></b></td>' . '<td width="50%" align="center"><b> <img src="' . base_url('assets/images/edgardo_tallado_sign.jpg') . '" height="55" width="150"/></b></td>' . '</tr>' . '<tr>' . '<td width="50%" align="center"><i>Mayor</i></td>' . '<td width="50%" align="center"><i>Governor</i></td>' . '</tr>' . '<tr>' . '<td width="60%"></td>' . '</tr>' . '<tr>' . '<td width="100%" align="center"><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>' . trim(htmlentities($result->full_name)) . '</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u></td>' . '</tr>' . '<tr>' . '<td width="100%" align="center">Lagda</td>' . '</tr>' . '</table>';
         $pdf->writeHTML($html, true, false, false, false, '');
         $ctr++;
         //            if($ctr == 1){
         //                $pdf->setY(100);
         //                $ctr = 0;
         //            }
     }
     $pdf->Output('letter.pdf', 'I');
     exit;
     pe($letter);
 }
开发者ID:pjsangat,项目名称:lgu,代码行数:55,代码来源:voter_model.php

示例10: print_brgy_leaders

 public function print_brgy_leaders($voter_data = array(), $data = array())
 {
     $this->load->library('pdf');
     $pdf = new Pdf('L', 'mm', 'LETTER', true, 'UTF-8', false);
     $pdf->SetTitle('My Title');
     $pdf->SetHeaderMargin(30);
     $pdf->SetTopMargin(20);
     $pdf->setFooterMargin(10);
     $pdf->SetAutoPageBreak(true, 15);
     $pdf->SetAuthor('Author');
     $pdf->AddPage('L', 'LEGAL');
     $pdf->setY(30);
     $html = '';
     $html .= '<div style="text-align: center;"><b>Brgy Leaders</b> for<br/><b>' . $data['brgy'] . '</b></div>';
     $html .= '<br/>';
     $html .= '<br/>';
     $html .= '<table style="border: 1px solid #000;border-collapse: collapse;" border="1" cellspacing="0" cellpadding="1">';
     $html .= '<thead>';
     $html .= '<tr style="background-color: #a8a8a8;">';
     $html .= '<th align="center" width="5%"></th>';
     $html .= '<th align="center" width="45%"><b>Voter\'s Name</b></th>';
     $html .= '<th align="center" width="30%"><b>Precinct No</b></th>';
     $html .= '<th align="center" width="20%"><b>Type</b></th>';
     $html .= '</tr>';
     $html .= '</thead>';
     if (count($voter_data) > 0) {
         $x = 1;
         foreach ($voter_data as $type => $val) {
             for ($ctr = 0; $ctr < count($val); $ctr++) {
                 $html .= '<tr nobr="true">';
                 $html .= '<td align="center" width="5%">' . $x . '.</td>';
                 $html .= '<td width="45%"> &nbsp;&nbsp;&nbsp;' . $val[$ctr]['full_name'] . '</td>';
                 $html .= '<td width="30%"> &nbsp;&nbsp;&nbsp;' . $val[$ctr]['precinct_no'] . '</td>';
                 $html .= '<td width="20%"> &nbsp;&nbsp;&nbsp;' . $val[$ctr]['type'] . '</td>';
                 $html .= '</tr>';
                 $x++;
             }
         }
     } else {
         $html .= '<tr>';
         $html .= '<td align="center" width="100%">No record found..</td>';
         $html .= '</tr>';
     }
     $html .= '</table>';
     $pdf->writeHTML($html, true, false, false, false, '');
     $pdf->Output('brgy_leaders_report.pdf', 'I');
 }
开发者ID:pjsangat,项目名称:lgu,代码行数:47,代码来源:barangay_model.php

示例11: pdf


//.........这里部分代码省略.........
  <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><div align="justify">Yo ' . $data['nombre'] . " " . $data['paterno'] . " " . $data['materno'] . ' declaro bajo protesta o exhorto de decir verdad que <b>NO CUENTO CON OTRA BECA </b>y/o ayuda igual o similar a la que por este   medio pido me otorgue <b>Prepa Sí</b> (FIDEGAR). <br />
        <br />
        <br />
        <br />
      Así mismo, manifiesto mi voluntad de contribuir con el programa Prepa Sí, para lo cual estoy dispuesto y <b>ME COMPROMETO A PARTICIPAR EN ACTIVIDADES EN COMUNIDAD </b>durante el periodo en el que el estímulo me sea otorgado. </div></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <br />
  </table>
  <p><br />
    <br /><br /><br /><br />
    Los datos personales recabados serán protegidos, incorporados y tratados en el sistema denominado Sistema de Datos Personales del Programa <b>Prepa Sí</b> del Fideicomiso Educación Garantizada del Distrito Federal (FIDEGAR), lo cual se funda en los artículos 6, 7 y demás relativos de la Ley de Protección de Datos Personales para el D. F, con el  fin de verificar que se cumplan las Reglas de Operación del Programa e integrar la base de datos de los beneficiarios de éste.
    <br /><br />
    Los datos marcados con asterisco (*) son obligatorios. Sin ellos no podrás acceder al Programa. Tus datos no podrán ser difundidos sin tu conocimiento expreso, salvo la excepciones previstas en la Ley.  La responsable del Sistema de Datos Personales es Mónica Pérez Egüis, Subdirectora de Control de Entregas e Incidencias. El lugar  donde podrás ejercer los derechos de acceso, rectificación, cancelación y oposición, así como la renovación del consentimiento es la Oficina de Información Pública del FIDEGAR, ubicada en Ejército Nacional N° 359, Col. Granada, Delegación Miguel Hidalgo, D.F. C.P.11520. <b>Tel. 11021730 ext.4079. Pág. web: www.fideicomisoed.df.gob.mx y e-mail oip@fideicomisoed.df.gob.mx. </b>El interesado podrá dirigirse al Instituto de Acceso a la Información Pública del D. F., donde recibirá asesoría sobre los derechos que tutela la Ley de Protección de Datos Personales, al tel.56534636; correo  datos.personales@infodf.org.mx o www.infodf.org.mx. En tal virtud, con base en el art. 16 de la Ley de Protección de Datos Personales para el D. F. <b>otorgo mi consentimiento para que mis datos personales tengan un tratamiento sólo para los fines del Programa Prepa Sí </b>durante el tiempo en cual me encuentre inscrito(a).<br>
    <br>
    <br>
  <em>
  <br>
  </em></p>
</div>
<div align="center"><em><br>Este programa es de carácter público, no es patrocinado ni promovido por partido político alguno y  sus recursos provienen de los impuestos que pagan todos los contribuyentes. Está  prohibido el uso de este programa con fines políticos, electorales, de lucro y  otros distintos a los establecidos. Quien haga uso indebido de los recursos de  este programa en el Distrito Federa, será sancionado de acuerdo con la ley  aplicable y ante la autoridad competente</em></div>
		
		
';
        // output the HTML content
        $pdf->writeHTML($html, true, 0, true, 0);
        ##############################################################################
        # SOLICITUD DE INSCRIPCIÓN
        ##############################################################################
        $pdf->SetFont('pdfahelveticab', '', 9);
        //Negrita
        $pdf->Text(15, 8, 'GOBIERNO DEL DISTRITO FEDERAL');
        $pdf->Text(15, 12, 'FIDEICOMISO EDUCACIÓN GARANTIZADA');
        $pdf->Text(15, 16, 'PROGRAMA DE ESTÍMULOS PARA EL BACHILLERATO UNIVERSAL');
        if ($data['id_archivo'] == 1) {
            $tipo = "INSCRIPCION";
        }
        if ($data['id_archivo'] == 2) {
            $tipo = "REINSCRIPCION";
        }
        if ($data['id_archivo'] == 3) {
            $tipo = "UNIVERSITARIO";
        }
        $pdf->Text(88, 20, 'SOLICITUD DE ' . $tipo . '');
        $pdf->SetFont('pdfahelvetica', '', 10);
        //Normal
        $pdf->SetFontSize(10);
        $pdf->Text(15, 25, 'FECHA DE TRAMITE:');
        $pdf->RoundedRect(55, 25, 50, 5, 3, '0000', 'NULL');
        $pdf->RoundedRect(150, 25, 51, 5, 3, '0000', 'NULL');
        $pdf->SetFontSize(7);
        $pdf->Text(170, 30, '*CURP');
        $pdf->SetFontSize(10);
        $pdf->SetTextColor(0, 100, 50, 0);
        $pdf->Text(15, 31, '1.- IDENTIFICACIÓN:');
        $pdf->SetTextColor(0, 0, 0, 100);
        $pdf->RoundedRect(15, 36, 60, 5, 3, '0000', 'NULL');
        $pdf->RoundedRect(78, 36, 60, 5, 3, '0000', 'NULL');
开发者ID:sistemasfidegar,项目名称:beneficiarios_prepasi,代码行数:67,代码来源:Reimpresion.php

示例12: Pdf

    function export_pdf17()
    {
        $this->load->library('pdf');
        ob_clean();
        $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
        $tbl = '';
        $tbl .= '
				<h3><u>REGISTRASI PASIEN</u></h3>
				<table border="0"  cellpadding="0" cellspacing="0" >
				 <tr >';
        $tbl .= '<th  align="center" bgcolor="#359AFF" width="30" >NO</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="100" >NO INDUK</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="150" >NAMA</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="100" >TGL LAHIR</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="50" >UMUR</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="50" >L/P</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="200" >ALAMAT</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="120" >TUJUAN</th>';
        $tbl .= '<th   valign="middle" bgcolor="#359AFF" width="120" >UNIT</th>';
        $tbl .= '</tr>';
        $sql = "select  pas_no, pas_kode_kk, concat(pas_no,'-',pas_kode_kk) noinduk,\npas_nama, pas_iskk, pas_kk, pas_sex,pas_noktp,pas_pekerjaan_id,pas_tgl_lahir, kun_th, kun_bln, kun_hr,kun_ku_id,\npas_asal, pas_kec_id, pas_desa_id, pas_alamat, pas_rt, pas_rw, \nkun_tujuan_id, kun_kp_id, kun_no_penjamin, kun_karcis,kun_no_seri,kun_unit_id, kun_pustu_id,kun_id, kun_tgl, kun_pas_id, tujuan_nama,\nkec_nama,desa_nama,unit_nama from v_kunjungan";
        $data = $this->m_global->grid_view($sql)->result_array();
        $no = 1;
        foreach ($data as $row) {
            $bg = $no % 2;
            if ($bg == 0) {
                $bg = ' bgcolor="#E1F0FF" ';
            } else {
                $bg = ' bgcolor="#FFFFFF" ';
            }
            $tbl .= '
					<tr>
					<td ' . $bg . '  align="center" width="30">' . $no . '</td>';
            $tbl .= '<td ' . $bg . '  width="100" >' . $row['noinduk'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="150" >' . $row['pas_nama'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="100" >' . $row['pas_tgl_lahir'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="50" >' . $row['kun_th'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="50" >' . $row['pas_sex'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="200" >' . $row['pas_alamat'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="120" >' . $row['tujuan_nama'] . '</td>';
            $tbl .= '<td ' . $bg . '  width="120" >' . $row['unit_nama'] . '</td>';
            $tbl .= '</tr>';
            $no++;
        }
        $tbl .= '</table>';
        $pdf->AddPage();
        $pdf->SetFont('helvetica', '', 8);
        $pdf->writeHTML($tbl, true, false, false, false, '');
        $pdf->Output('example_048.pdf', 'I');
    }
开发者ID:sururbadrus,项目名称:charismasimrs,代码行数:50,代码来源:Kunjungan_model.php

示例13: index

 public function index()
 {
     $this->load->model('candidate_model');
     $this->load->model('votes_model');
     $this->load->model('voter_model');
     //        $brgy = $this->voter_model
     //                ->group_by('brgy')
     //                ->select('brgy')
     //                ->get_all();
     $brgy = $this->voter_model->group_by('brgy, precinct')->select('brgy, precinct')->get_all();
     $candidates = $this->candidate_model->get_all();
     if ($this->input->post()) {
         $pData = $this->input->post();
         $brgy_arr = explode("-", $pData['brgy']);
         $brgy = $brgy_arr[0];
         $precinct = $brgy_arr[1];
         //            $this->votes_model->order_by('voted_when', 'ASC');
         //            $votes = $this->votes_model->get_many_by(array('candidate_id' => $pData['candidate']));
         $sql = "SELECT b.id_no, b.full_name, b.address, b.precinct, b.brgy, b.gender FROM votes a INNER JOIN list b on b.id = a.voter_id WHERE a.candidate_id = ?" . (isset($pData['brgy']) && !empty($pData['brgy']) ? " AND brgy = ? AND precinct = ?" : "");
         $query = $this->db->query($sql, array($pData['candidate'], $brgy, $precinct));
         $voters = $query->result_array();
         $candidate = $this->candidate_model->get_by(array('id' => $pData['candidate']));
         $a = 0;
         $this->load->library('pdf');
         $pdf = new Pdf('L', 'mm', 'LETTER', true, 'UTF-8', false);
         $pdf->SetTitle('My Title');
         $pdf->SetHeaderMargin(30);
         $pdf->SetTopMargin(20);
         $pdf->setFooterMargin(10);
         $pdf->SetAutoPageBreak(true, 15);
         $pdf->SetAuthor('Author');
         $pdf->AddPage('L', 'LEGAL');
         $pdf->setY(30);
         $html = '';
         $html .= '<div style="text-align: center;"><b>Voters List</b> for<br/><b>' . $candidate['position'] . ' ' . $candidate['name'] . '</b></div>';
         $html .= '<div style="text-align: center;"><b>Brgy : </b>' . $brgy . ' <b>Precinct : </b> ' . $precinct . '</div>';
         $html .= '<br/>';
         if (count($voters) > 0) {
             $html .= '<div style="text-align: right;"><b>Total # of voters : ' . count($voters) . '</b></div>';
         }
         $html .= '<br/>';
         $html .= '<table style="border: 1px solid #000;border-collapse: collapse;" border="1" cellspacing="0" cellpadding="1">';
         $html .= '<thead>';
         $html .= '<tr style="background-color: #a8a8a8;">';
         $html .= '<th align="center" width="4%"><b>Id No</b></th>';
         $html .= '<th align="center" width="41%"><b>Voter\'s Name</b></th>';
         $html .= '<th align="center" width="25%"><b>Address</b></th>';
         $html .= '<th align="center" width="10%"><b>Precinct</b></th>';
         $html .= '<th align="center" width="15%"><b>Brgy</b></th>';
         $html .= '<th align="center" width="5%"><b>Gender</b></th>';
         $html .= '</tr>';
         $html .= '</thead>';
         if (count($voters) > 0) {
             for ($ctr = 0; $ctr < count($voters); $ctr++) {
                 $a++;
                 $html .= '<tr nobr="true">';
                 $html .= '<td align="center" width="4%"><b>' . $voters[$ctr]['id_no'] . '</b></td>';
                 $html .= '<td align="center" width="41%">' . $voters[$ctr]['full_name'] . '</td>';
                 $html .= '<td align="center" width="25%">' . $voters[$ctr]['address'] . '</td>';
                 $html .= '<td align="center" width="10%">' . $voters[$ctr]['precinct'] . '</td>';
                 $html .= '<td align="center" width="15%">' . $voters[$ctr]['brgy'] . '</td>';
                 $html .= '<td align="center" width="5%">' . $voters[$ctr]['gender'] . '</td>';
                 $html .= '</tr>';
             }
         } else {
             $html .= '<tr>';
             $html .= '<td align="center" width="100%">No record found..</td>';
             $html .= '</tr>';
         }
         $html .= '</table>';
         $pdf->writeHTML($html, true, false, false, false, '');
         $pdf->Output('votes_report.pdf', 'I');
     }
     $this->mTitle = "";
     $this->mViewData['candidates'] = $candidates;
     $this->mViewData['brgys'] = $brgy;
     $this->mViewFile = "votes/index";
 }
开发者ID:pjsangat,项目名称:lgu,代码行数:78,代码来源:votes.php

示例14: library

    function make_pdf($PDF_html, $PDF_name='Ads2Trade_Document', $PDF_Title='Ads2Trade Dcoument', $PDF_Orientation="L")
    {
        $CI =& get_instance();
        $CI->load->library('pdf'); // load library (if not already loaded - CI will handle this check for us though)

        // create new PDF document
        //$pdf = new TCPDF($PDF_Orientation, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
        $pdf = new Pdf($PDF_Orientation, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

        $html = $PDF_html;

        //Make sure orientation is valid i.e. either P or L
        if($PDF_Orientation != 'P' && $PDF_Orientation != 'L'){
            $PDF_Orientation = 'L'; //default to landscape if invalid value supplied
        }

        $pdf->setPageOrientation($PDF_Orientation); //custom class seemed to not be picking up orientation in constructor

        if($PDF_name == '' or  is_null($PDF_name)){
            $PDF_name = 'Ads2Trade_Document'; //default to landscape if invalid value supplied
        }

        // set document information
        //$pdf->SetCreator(PDF_CREATOR);
        $pdf->SetCreator("Ads2Trade");
        $pdf->SetAuthor('Ads2Trade');
        $pdf->SetTitle('Ads2Trade Document Title Goes Here');
        $pdf->SetSubject('Ads2Trade');
        $pdf->SetKeywords('Ads2Trade, PDF, asset, auction, advertising');

        // set default header data
        $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $PDF_Title, 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);

        // 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 (optional)
        if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
            require_once(dirname(__FILE__).'/lang/eng.php');
            $pdf->setLanguageArray($l);
        }


        // ---------------------------------------------------------

        // set font
        $pdf->SetFont('dejavusans', '', 10);

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

        // create some HTML content
        if (is_null($html) or ($html == '')) {
                $html = '<!DOCTYPE html>
                <html>
                  <head>
                  <title></title>
                          <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
                  </head>
                 <body>
                     <p>ERROR: No Document Data Supplied</p>
                 </body>
                 </html>';

        }

        // output the HTML content
        $pdf->writeHTML($html, true, false, true, false, '');


        // reset pointer to the last page
        $pdf->lastPage();

        // ---------------------------------------------------------

        //Close and output PDF document
        $pdf->Output($PDF_name.'.pdf', 'I');

    }
开发者ID:sucksido,项目名称:Ads2TradeFinal,代码行数:94,代码来源:tcpdf_helper.php

示例15: index

    function index()
    {
        date_default_timezone_set('Australia/NSW');
        $ImageW = 105;
        //WaterMark Size
        $ImageH = 30;
        $id_user = $this->uri->segment(2);
        $created_at = urldecode($this->uri->segment(3));
        $display_name = $this->session->userdata('display_name');
        $getOrganization = $this->survey_model->get_organization($id_user);
        $getsurveydetails = $this->survey_model->getsurveydetails($id_user, $created_at);
        $getsurveydetail = unserialize($getsurveydetails);
        $this->load->library('Pdf');
        $pdf = new Pdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
        // set document information
        $pdf->SetCreator(PDF_CREATOR);
        $pdf->SetAuthor('AMIT');
        $pdf->SetTitle('SMG Health Survey Report');
        $pdf->SetSubject('Survey Report');
        $pdf->SetKeywords('SMG Health Survey Report ');
        // set header and footer fonts
        $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
        // set default monospaced font
        $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
        // set margins
        $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP - 15, 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 (optional)
        if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
            require_once dirname(__FILE__) . '/lang/eng.php';
            $pdf->setLanguageArray($l);
        }
        $pdf->SetFont('freeserif', '', 48);
        // remove default header
        $pdf->setPrintHeader(false);
        // add a page
        $pdf->AddPage();
        // get the current page break margin
        $bMargin = $pdf->getBreakMargin();
        // get current auto-page-break mode
        $auto_page_break = $pdf->getAutoPageBreak();
        // disable auto-page-break
        $pdf->SetAutoPageBreak(false, 0);
        // set bacground image
        $img_file = Base_url() . 'assets/site/images/coverImage.jpg';
        $pdf->Image($img_file, 0, 0, 210, 297, '', '', '', false, 400, '', false, false, 0);
        // restore auto-page-break status
        $pdf->SetAutoPageBreak($auto_page_break, $bMargin);
        // set the starting point for the page content
        $pdf->setPageMark();
        // Print a text
        $html = '<div style="position: relative; right:0; left:0; text-align:center; padding: 50px 15px;">
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">SMG Health Bounce Back Survey</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 0 0 20px; color: #333; font-weight: 500;font-size: 40px;">&nbsp;</h1>
                                    <h1 style="margin: 100px 0 0px; color: #000; font-weight: 500;font-size: 24px; text-transform: capitalize;">' . $getOrganization . '</h1>
                                    <h1 style="margin: 0 0 20px; color: #000; font-weight: 500;font-size: 18px;">' . $created_at . '</h1>
                                </div>';
        $pdf->writeHTML($html, true, false, true, false, '');
        // ---------------------------------------------------------
        $img_file = Base_url() . 'assets/site/images/innerbanner.jpg';
        $pdf->AddPage();
        $myPageWidth = $pdf->getPageWidth();
        $myPageHeight = $pdf->getPageHeight();
        $myX = $myPageWidth / 2 - 50;
        $myY = $myPageHeight / 2 - 40;
        $pdf->SetAlpha(0.09);
        $pdf->Image(Base_url() . 'assets/site/images/dase_logo.png', $myX, $myY, $ImageW, $ImageH, '', '', '', true, 150);
        $pdf->SetAlpha(1);
        $pdf->Image($img_file, 0, 0, 210, 47, '', '', '', false, 300, '', false, false, 0);
        $pdf->SetDrawColor(255, 0, 0);
        $content = '<table cellspacing="0" cellpadding="0">
            <tr><td><img title="" alt="" src="' . Base_url() . 'assets/site/images/dase_logo.png"></td></tr>
            <tr><td>' . $display_name . '</td></tr>
            <tr><td>' . $created_at . '</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
        </table>';
        $content .= '<div style="padding: 30px;">
                                <p style="margin: 0 0 10px;color: #424242;font-weight: 500;font-size: 20px;">Introduction</p>
                                <p>Thank you for completing your Bounce Back Survey. This report provides you with a summary of your results, makes some personalised recommendations and provides you with the tools to create an action plan.</p>
                                <p>Each dimension is presented individually with a description of your results and strategies for strengthening.</p>
                                <p style="margin: 5px 0 10px;color: #424242;font-weight: 500;font-size: 20px;">Understanding Your Report</p>
                                <p>Your report contains a description of the 10 dimensions of resilience for which you were assessed.  Your individual assessment results for each dimension is presented as a flag.  Refer to the table below when reading your report.</p>
                                <p>Red flag: <img src="' . Base_url() . 'assets/site/images/close_icon.jpg" height="25" alt="">
                                &nbsp;&nbsp;&nbsp;Green Flag:<img src="' . Base_url() . 'assets/site/images/tick_icon.jpg" height="25" alt=""></p>
                                <p style="margin: 5px 0 10px; color: #424242; font-weight: 500; font-size: 20px;">Summary of Results</p>
                                <table style="text-align: left;">
                                    <thead>
//.........这里部分代码省略.........
开发者ID:subhadip-sahoo,项目名称:codeigniter,代码行数:101,代码来源:Pdfcreate.php


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