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


PHP pdf_create函数代码示例

本文整理汇总了PHP中pdf_create函数的典型用法代码示例。如果您正苦于以下问题:PHP pdf_create函数的具体用法?PHP pdf_create怎么用?PHP pdf_create使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: create_delivery_note

 private function create_delivery_note($data)
 {
     $this->load->helper(array('dompdf', 'file'));
     $html = $this->load->view('admin/includes/delivery_note', $data, true);
     $pdf_data = pdf_create($html, '', false, '', 'delivery_note');
     return $pdf_data;
 }
开发者ID:bteem-admin,项目名称:gt_final,代码行数:7,代码来源:certificate_requested_by_branch.php

示例2: ver

 function ver()
 {
     $parametros = func_get_args();
     if (count($parametros) > 0) {
         $_arch_nombre = implode('-', $parametros);
         $_fnombre = array_shift($parametros);
         $this->_direccion = 'http://localhost/' . trim_slashes($this->config->item('base_url'));
         $this->load->plugin('html2pdf');
         //$this->rapyd->load('dataobject');
         $this->db->_escape_char = '';
         $this->db->_protect_identifiers = false;
         $query = $this->db->query("SELECT proteo FROM formatos WHERE nombre='{$_fnombre}'");
         if ($query->num_rows() > 0) {
             $row = $query->row();
             ob_start();
             echo eval('?>' . preg_replace("/;*\\s*\\?>/", "; ?>", str_replace('<?=', '<?php echo ', $row->proteo)) . '<?php ');
             $_html = ob_get_contents();
             @ob_end_clean();
             pdf_create($_html, $_arch_nombre);
         } else {
             echo 'Formato no existe';
         }
     } else {
         echo 'Faltan parametros';
     }
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:26,代码来源:formatos.php

示例3: create_request_slip

 private function create_request_slip($data)
 {
     $this->load->helper(array('dompdf', 'file'));
     $html = $this->load->view('admin/includes/request_slip', $data, true);
     $pdf_data = pdf_create($html, '', false, 123, 'request_slip');
     return $pdf_data;
 }
开发者ID:bteem-admin,项目名称:gt_final,代码行数:7,代码来源:certificate_order_to_aki.php

示例4: multiple

 function multiple()
 {
     $action = $this->input->post('action');
     if ($action == "delete") {
         $delete = $this->input->post('msg');
         for ($i = 0; $i < count($delete); $i++) {
             $this->Bpjs_model->delete($delete[$i]);
         }
     } elseif ($action == "uncheck") {
         $uncheck = $this->input->post('msg');
         for ($i = 0; $i < count($uncheck); $i++) {
             $this->Bpjs_model->add(array('bpjs_id' => $uncheck[$i], 'bpjs_cetak' => 0));
             $this->session->set_flashdata('success', 'Sunting Remove berhasil');
         }
     } elseif ($action == "printPdf") {
         $this->load->helper(array('dompdf'));
         $this->load->helper(array('tanggal'));
         $bpjsk = $this->input->post('msg');
         for ($i = 0; $i < count($bpjsk); $i++) {
             $print[] = $bpjsk[$i];
         }
         $data['bpjs'] = $this->Bpjs_model->get(array('multiple_id' => $print));
         for ($i = 0; $i < count($data['bpjs']); $i++) {
             $this->barcode2($data['bpjs'][$i]['bpjs_noka'], '');
         }
         $html = $this->load->view('admin/bpjs/bpjs_multiple_pdf', $data, true);
         $data = pdf_create($html, '', TRUE, [0, 0, 325, 620], 'landscape');
     }
     redirect('admin/cetak');
 }
开发者ID:achyar10,项目名称:hras,代码行数:30,代码来源:Cetak.php

示例5: generate_quote_pdf

function generate_quote_pdf($quote_id, $stream = TRUE, $quote_template = NULL)
{
    $CI = &get_instance();

    $CI->load->model('quotes/mdl_quotes');
    $CI->load->model('quotes/mdl_quote_items');
    $CI->load->model('quotes/mdl_quote_tax_rates');

    $quote = $CI->mdl_quotes->get_by_id($quote_id);

    if (!$quote_template) {
        $quote_template = $CI->mdl_settings->setting('pdf_quote_template');
    }

    $data = array(
        'quote' => $quote,
        'quote_tax_rates' => $CI->mdl_quote_tax_rates->where('quote_id', $quote_id)->get()->result(),
        'items' => $CI->mdl_quote_items->where('quote_id', $quote_id)->get()->result(),
        'output_type' => 'pdf'
    );

    $html = $CI->load->view('quote_templates/pdf/' . $quote_template, $data, TRUE);

    $CI->load->helper('mpdf');
    

    //return pdf_create($html, lang('quote') . '_' . str_replace(array('\\', '/'), '_', $quote->quote_number), $stream,$quote->quote_password);
    //16133 - IPA - MK Snap
    
    return pdf_create($html, $quote->quote_number . '-' . str_replace(array('\\', '/'), '_',$quote->client_name), $stream,$quote->quote_password);    
}
开发者ID:n0rp3d,项目名称:invoice,代码行数:31,代码来源:pdf_helper.php

示例6: ver1

 function ver1()
 {
     $parametros = func_get_args();
     $this->_direccion = 'http://localhost/' . trim_slashes($this->config->item('base_url'));
     if (count($parametros) > 0) {
         $_fnombre = array_shift($parametros);
         $_dbfnombre = $this->db->escape($_fnombre);
         $this->load->plugin('html2pdf');
         $query = $this->db->query('SELECT proteo FROM formatos WHERE nombre=' . $_dbfnombre);
         if ($query->num_rows() > 0) {
             $row = $query->row();
             ob_start();
             echo eval('?>' . preg_replace('/;*\\s*\\?>/', '; ?>', str_replace('<?=', '<?php echo ', $row->proteo)) . '<?php ');
             $_html = ob_get_contents();
             @ob_end_clean();
             if (strlen($_html) > 0) {
                 pdf_create($_html, $_arch_nombre);
             } else {
                 echo 'Formato no definido';
             }
         } else {
             echo 'Formato no existe';
         }
     } else {
         echo 'Faltan parametros';
     }
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:27,代码来源:formatos.php

示例7: view

 function view($id, $fid, $p = 0)
 {
     if (isset($id)) {
         $this->load->model('student_sem_form/sbasic_model', '', TRUE);
         $this->load->model('student_sem_form/get_subject', '', TRUE);
         $this->load->model('student_sem_form/get_results', '', TRUE);
         $this->load->model('student_sem_form/get_carryover', '', TRUE);
         $data['student'] = $this->sbasic_model->hod_view_student($id, $fid);
         $data['subjects'] = $this->get_subject->getSubject($data['student'][0]->course_id, $data['student'][0]->branch_id, $data['student'][0]->semester + 1, $data['student'][0]->admission_id);
         $data['carryover'] = $this->get_carryover->getCarryoverByformId($data['student'][0]->form_id);
         // Elective Subject
         $data['confirm'] = $this->get_subject->getConfirm($data['student'][0]->form_id);
         //Change Branch
         $data['CB'] = $this->sbasic_model->getCbByfromId($data['student'][0]->form_id);
         $this->load->view('templates/header_assets');
         if ($p == 1) {
             $this->load->helper(array('dompdf', 'file'));
             //$html.=	$this->load->view('templates/header_assets');
             $html = $this->load->view('student_sem_form/department/view1.php', $data, TRUE);
             pdf_create($html, 'Regform_' . $data['student'][0]->admn_no);
         } else {
             $this->load->view('student_sem_form/department/view.php', $data);
         }
     }
 }
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:25,代码来源:regular_check.php

示例8: debit_note

 private function debit_note($data)
 {
     $this->load->helper(array('dompdf', 'file'));
     $html = $this->load->view('underwriter/motor_private/includes/debit_note', $data, true);
     $pdf_data = pdf_create($html, '', false, $data['print_array']['motor_takaful_id'], 'debit_note');
     return $pdf_data;
 }
开发者ID:bteem-admin,项目名称:gt_final,代码行数:7,代码来源:approve_general_accident_takaful_proposal.php

示例9: per_project_pdf

 function per_project_pdf()
 {
     $this->load->model('modules');
     $this->modules->analyze_clock_entries_per_project_report();
     $html = $this->load->view('tpl/result/per_project_results', $this->data, true);
     pdf_create($html, 'filename');
     //if you want to write it to disk and/or send it as an attachment
 }
开发者ID:billystalnaker,项目名称:emails,代码行数:8,代码来源:pdf.php

示例10: pdf

 function pdf()
 {
     $this->load->helper('file');
     $this->load->plugin('to_pdf');
     // page info here, db calls, etc.
     $html = $this->load->view('test', false, true);
     pdf_create($html, 'filename');
 }
开发者ID:kjgraham,项目名称:gvj,代码行数:8,代码来源:test.php

示例11: pdf

 function pdf()
 {
     $this->load->helper($this->mdl_mcb_data->setting('pdf_plugin'));
     $invoices = $this->_get_results();
     $totals = $this->_get_totals($invoices);
     $data = array('invoices' => $invoices, 'totals' => $totals);
     $html = $this->load->view('html', $data, TRUE);
     pdf_create($html, $this->lang->line('invoice_summary_report'), TRUE);
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:9,代码来源:search_results.php

示例12: generate_pdf_quote

function generate_pdf_quote($quote_data, $stream = TRUE)
{
    $CI =& get_instance();
    $data = array('quote_details' => $quote_data, 'output_type' => 'pdf');
    $html = $CI->load->view('pdf_templates/quotes', $data, TRUE);
    $CI->load->helper('mpdf');
    $filename = 'quote_' . strtolower(trim(preg_replace('#\\W+#', '_', $quote_data['quote_details']->quote_id), '_'));
    return pdf_create($html, $filename, $stream);
}
开发者ID:anji12172,项目名称:finalProject,代码行数:9,代码来源:pdf_helper.php

示例13: exportMeAsDOMPDF

 function exportMeAsDOMPDF($htmView, $fileName)
 {
     $CI =& get_instance();
     $CI->load->helper(array('dompdf', 'file'));
     $CI->load->helper('file');
     $pdfName = $fileName;
     $pdfData = pdf_create($htmView, $pdfName);
     write_file('Progress Repost', $pdfData);
 }
开发者ID:bahar61119,项目名称:Level-3-Term-1-Automated-BUET-M.Sc.-and-PhD-Admission-System,代码行数:9,代码来源:pdfexport_helper.php

示例14: pdf

 function pdf($invoice_id, $invoice_template)
 {
     $this->CI->load->helper($this->CI->mdl_mcb_data->setting('pdf_plugin'));
     $invoice = $this->get_invoice($invoice_id);
     $invoice_number = $invoice->invoice_number;
     $data = array('invoice' => $invoice, 'output_type' => 'pdf');
     $html = $this->CI->load->view('invoices/invoice_templates/' . $invoice_template, $data, TRUE);
     $file_prefix = !$data['invoice']->invoice_is_quote ? $this->CI->lang->line('invoice') . '_' : $this->CI->lang->line('quote') . '_';
     pdf_create($html, $file_prefix . $invoice_number, TRUE);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:10,代码来源:Lib_output.php

示例15: pdf

 function pdf($invoice_id, $payment_id, $template)
 {
     $this->CI->load->helper($this->CI->mdl_mcb_data->setting('pdf_plugin'));
     $params = array('where' => array('mcb_invoices.invoice_id' => $invoice_id));
     $invoice = $this->CI->mdl_invoices->get($params);
     $invoice_payments = $this->CI->mdl_invoices->get_invoice_payments($invoice->invoice_id);
     $data = array('invoice' => $invoice, 'invoice_payments' => $invoice_payments);
     $html = $this->CI->load->view('payments/receipt_templates/' . $template, $data, TRUE);
     pdf_create($html, 'receipt_' . $invoice->invoice_number, TRUE);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:10,代码来源:Lib_output.php


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