Ejemplo n.º 1
1
function exportPdf($URl)
{
    include 'MPDF56/mpdf.php';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $URl);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $html = curl_exec($ch);
    curl_close($ch);
    $mpdf = new mPDF('utf-8');
    $mpdf->SetAutoFont();
    $mpdf->WriteHTML($html);
    $mpdf->Output();
}
Ejemplo n.º 2
1
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();
    }
}
 public function send()
 {
     $this->loadData();
     $mpdf = new mPDF('utf-8', 'A4');
     $mpdf->useOnlyCoreFonts = true;
     $mpdf->SetDisplayMode('fullpage');
     $mpdf->SetAutoFont(0);
     // CSS soubory
     $css[] = './styles/faktura.css';
     // faktura v HTML (PHP, atd.)
     $html[] = KIWI_INVOICE . '?bauth&o=' . $this->id;
     foreach ($css as $filename) {
         @$mpdf->WriteHTML(file_get_contents($filename, true), 1);
     }
     foreach ($html as $filename) {
         @$mpdf->WriteHTML(file_get_contents($this->file2Url($filename)), 2);
     }
     $o_id = sprintf("%03d", $this->data->YID) . "-{$this->data->Year}";
     $name = "invoice_{$o_id}.pdf";
     $mpdf->Output($name, "D");
     // download
 }
 /**
  * Creates the PDF and does a specific output (see PDF_Generator function above for $output variable types)
  */
 public function PDF_processing($html, $filename, $id, $output = 'view', $arguments)
 {
     /* 
      * DOMPDF replaced with mPDF in v3.0.0 
      * Check which version of mpdf we are calling
      * Full, Lite or Tiny
      */
     if (!class_exists('mPDF')) {
         if (FP_PDF_ENABLE_MPDF_TINY === true) {
             include FP_PDF_PLUGIN_DIR . '/mPDF/mpdf-extra-lite.php';
         } elseif (FP_PDF_ENABLE_MPDF_LITE === true) {
             include FP_PDF_PLUGIN_DIR . '/mPDF/mpdf-lite.php';
         } else {
             include FP_PDF_PLUGIN_DIR . '/mPDF/mpdf.php';
         }
     }
     /* 
      * Initialise class and set the paper size and orientation
      */
     $paper_size = $arguments['pdf_size'];
     if (!is_array($paper_size)) {
         $orientation = $arguments['orientation'] == 'landscape' ? '-L' : '';
         $paper_size = $paper_size . $orientation;
     } else {
         $orientation = $arguments['orientation'] == 'landscape' ? 'L' : 'P';
     }
     $mpdf = new mPDF('', $paper_size, 0, '', 15, 15, 16, 16, 9, 9, $orientation);
     /*
      * Display PDF is full-page mode which allows the entire PDF page to be viewed
      * Normally PDF is zoomed right in.
      */
     $mpdf->SetDisplayMode('fullpage');
     if (FP_PDF_ENABLE_SIMPLE_TABLES === true) {
         $mpdf->simpleTables = true;
     }
     /*
      * Automatically detect fonts and substitue as needed
      */
     if (FP_PDF_DISABLE_FONT_SUBSTITUTION === true) {
         $mpdf->useSubstitutions = false;
     } else {
         $mpdf->SetAutoFont(AUTOFONT_ALL);
         $mpdf->useSubstitutions = true;
     }
     /*
      * Set Creator Meta Data
      */
     $mpdf->SetCreator('Formidable Pro PDF Extended v' . FP_PDF_EXTENDED_VERSION . '. http://formidablepropdfextended.com');
     /*
      * Set RTL languages at user request
      */
     if ($arguments['rtl'] === true) {
         $mpdf->SetDirectionality('rtl');
     }
     /*
      * Set up security if user requested
      */
     if ($arguments['security'] === true && $arguments['pdfa1b'] !== true && $arguments['pdfx1a'] !== true) {
         $password = strlen($arguments['pdf_password']) > 0 ? $arguments['pdf_password'] : '';
         $master_password = strlen($arguments['pdf_master_password']) > 0 ? $arguments['pdf_master_password'] : null;
         $pdf_privileges = is_array($arguments['pdf_privileges']) ? $arguments['pdf_privileges'] : array();
         $mpdf->SetProtection($pdf_privileges, $password, $master_password, 128);
     }
     /* PDF/A1-b support added in v3.4.0 */
     if ($arguments['pdfa1b'] === true) {
         $mpdf->PDFA = true;
         $mpdf->PDFAauto = true;
     } else {
         if ($arguments['pdfx1a'] === true) {
             $mpdf->PDFX = true;
             $mpdf->PDFXauto = true;
         }
     }
     /*
      * Check if we should auto prompt to print the document on open
      */
     if (isset($_GET['print'])) {
         $mpdf->SetJS('this.print();');
     }
     /* load HTML block */
     $mpdf->WriteHTML($html);
     switch ($output) {
         case 'download':
             $mpdf->Output($filename, 'D');
             exit;
             break;
         case 'view':
             $mpdf->Output(time(), 'I');
             exit;
             break;
         case 'save':
             /*
              * PDF wasn't writing to file with the F method - http://mpdf1.com/manual/index.php?tid=125
              * Return as a string and write to file manually
              */
             $pdf = $mpdf->Output('', 'S');
             return $this->savePDF($pdf, $filename, $id);
             break;
     }
 }
Ejemplo n.º 5
1
 public static function get_pdf($html)
 {
     include FCPATH . "mpdf/mpdf.php";
     $mpdf = new mPDF();
     $mpdf->useAdobeCJK = true;
     $mpdf->SetAutoFont(AUTOFONT_ALL);
     //$mpdf->WriteHTML(file_get_contents(base_url().'assets/templates/default/fonts/mpdf.css'),1);
     $mpdf->WriteHTML($html);
     $mpdf->Output();
 }
Ejemplo n.º 6
0
Archivo: mpdf.php Proyecto: ener/mpdf
 public function render($file = NULL)
 {
     // Render the HTML normally
     $html = parent::render($file);
     // Render the HTML to a PDF
     $mpdf = new mPDF('UTF-8', 'A4');
     $mpdf->SetAutoFont(AUTOFONT_ALL);
     $mpdf->WriteHTML($html);
     return $mpdf->output();
 }
Ejemplo n.º 7
0
function pdf_create($html, $filename, $stream = TRUE)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $mpdf = new mPDF();
    $mpdf->autoScriptToLang = true;
    $mpdf->autoLangToFont = true;
    //$pdf = $this->pdf->load();
    //for chinese word soulution
    $mpdf->useAdobeCJK = true;
    $mpdf->SetAutoFont(AUTOFONT_ALL);
    $mpdf->SetAutoFont();
    $mpdf->WriteHTML($html);
    if ($stream) {
        $mpdf->Output($filename . '.pdf', 'D');
    } else {
        $mpdf->Output('./pdfinvoices/temp/' . $filename . '.pdf', 'F');
        return './pdfinvoices/temp/' . $filename . '.pdf';
    }
}
Ejemplo n.º 8
0
function pdf_create($html, $filename, $stream = TRUE)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $CI =& get_instance();
    $mpdf = new mPDF();
    $mpdf->SetAutoFont();
    $mpdf->WriteHTML($html);
    if ($stream) {
        $mpdf->Output($filename . '.pdf', 'I');
    } else {
        $mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');
    }
}
Ejemplo n.º 9
0
function pdf_create($html, $filename, $stream = TRUE)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $mpdf = new mPDF();
    $mpdf->SetAutoFont();
    $mpdf->WriteHTML($html);
    if ($stream) {
        $mpdf->Output($filename . '.pdf', 'D');
    } else {
        $mpdf->Output('./pdfinvoices/temp/' . $filename . '.pdf', 'F');
        return './pdfinvoices/temp/' . $filename . '.pdf';
    }
}
Ejemplo n.º 10
0
function pdf_create($html, $filename, $stream = true, $password = null, $isInvoice = null, $isGuest = null, $zugferd_invoice = false, $associatedFiles = null)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $mpdf = new mPDF();
    $mpdf->useAdobeCJK = true;
    $mpdf->SetAutoFont();
    if ($zugferd_invoice) {
        $CI =& get_instance();
        $CI->load->helper('zugferd');
        $mpdf->PDFA = true;
        $mpdf->PDFAauto = true;
        $mpdf->SetAdditionalRdf(zugferd_rdf());
        $mpdf->SetAssociatedFiles($associatedFiles);
    } else {
        // Avoid setting protection when password is blank/empty
        if (!empty($password)) {
            $mpdf->SetProtection(array('copy', 'print'), $password, $password);
        }
    }
    if (!(is_dir('./uploads/archive/') || is_link('./uploads/archive/'))) {
        mkdir('./uploads/archive/', '0777');
    }
    // Enable image error logging
    if (IP_DEBUG) {
        $mpdf->showImageErrors = true;
    }
    if (strpos($filename, trans('invoice')) !== false) {
        $CI =& get_instance();
        $mpdf->setAutoBottomMargin = 'stretch';
        $mpdf->SetHTMLFooter('<div id="footer">' . $CI->mdl_settings->settings['pdf_invoice_footer'] . '</div>');
    }
    $invoice_array = array();
    $mpdf->WriteHTML($html);
    // If $stream is true (default) the PDF will be displayed directly in the browser, otherwise will be returned as a download
    if ($stream) {
        if (!$isInvoice) {
            return $mpdf->Output($filename . '.pdf', 'I');
        }
        foreach (glob('./uploads/archive/*' . $filename . '.pdf') as $file) {
            array_push($invoice_array, $file);
        }
        if (!empty($invoice_array) && $isGuest) {
            rsort($invoice_array);
            header('Content-type: application/pdf');
            return readfile($invoice_array[0]);
        } else {
            if ($isGuest) {
                // @TODO flashdata is deleted between requests
                //$CI->session->flashdata('alert_error', 'sorry no Invoice found!');
                redirect('guest/view/invoice/' . end($CI->uri->segment_array()));
            }
        }
        $mpdf->Output('./uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf', 'F');
        return $mpdf->Output($filename . '.pdf', 'I');
    } else {
        if ($isInvoice) {
            foreach (glob('./uploads/archive/*' . $filename . '.pdf') as $file) {
                array_push($invoice_array, $file);
            }
            if (!empty($invoice_array) && !is_null($isGuest)) {
                rsort($invoice_array);
                return $invoice_array[0];
            }
            $mpdf->Output('./uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf', 'F');
            return './uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf';
        }
        $mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');
        // Housekeeping
        // Delete any files in temp/ directory that are >1 hrs old
        $interval = 3600;
        if ($handle = @opendir(preg_replace('/\\/$/', '', './uploads/temp/'))) {
            while (false !== ($file = readdir($handle))) {
                if ($file != '..' && $file != '.' && !is_dir($file) && filemtime('./uploads/temp/' . $file) + $interval < time() && substr($file, 0, 1) !== '.' && $file != 'remove.txt') {
                    // mPDF 5.7.3
                    unlink('./uploads/temp/' . $file);
                }
            }
            closedir($handle);
        }
        // Return the pdf itself
        return './uploads/temp/' . $filename . '.pdf';
    }
}
Ejemplo n.º 11
0
 public function downliuzhuanfile()
 {
     $per = C('DB_PREFIX');
     $borrow_config = (require C("APP_ROOT") . "Conf/borrow_config.php");
     $invest_id = intval($_GET['id']);
     //$borrow_id=intval($_GET['id']);
     //old
     //$iinfo = M('borrow_investor')->field('id,borrow_id,investor_capital,investor_interest,deadline,investor_uid,add_time')->where("(investor_uid={$this->uid} OR borrow_uid={$this->uid}) AND id={$invest_id}")->find();
     $iinfo = M('borrow_investor')->field('id,borrow_id,investor_capital,investor_interest,deadline,investor_uid,add_time')->where("investor_uid={$this->uid} AND id={$invest_id}")->find();
     $investor_capital_big = cny($iinfo['investor_capital']);
     $borrow_id = $iinfo['borrow_id'];
     //dump( $borrow_id);
     //exit;
     $binfo = M('borrow_info bi')->field('bi.id,bi.repayment_type,bi.borrow_duration,bi.borrow_uid,bi.borrow_type,bi.borrow_use,bi.borrow_money,bi.full_time,bi.add_time,bi.borrow_interest_rate,bi.deadline,bi.second_verify_time,bi.collect_time,mi.real_name,mi.stamp_img')->join("{$per}member_info mi ON bi.danbao=mi.uid")->find($borrow_id);
     //dump($iinfo);
     //dump(M("members m")->getlastsql());
     //exit;
     $mBorrow = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,m.user_name,mi.idcard,mi.stamp_img')->where("m.id={$binfo['borrow_uid']}")->find();
     //$mInvest = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,m.user_name')->where("m.id={$iinfo['investor_uid']}")->find();
     $mInvest = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,mi.address,mi.cell_phone,mi.idcard,m.user_name,m.user_email')->where("m.id={$iinfo['investor_uid']}")->find();
     //if(!is_array($iinfo)||!is_array($binfo)||!is_array($mBorrow)||!is_array($mInvest)) exit;
     $detail = M('investor_detail d')->field('d.borrow_id,d.investor_uid,d.borrow_uid,d.capital,sum(d.capital+d.interest-d.interest_fee) benxi,d.total')->where("d.borrow_id={$iinfo['borrow_id']} and d.invest_id ={$iinfo['id']}")->group('d.investor_uid')->find();
     //$detailinfo = M('investor_detail d')->join("{$per}borrow_investor bi ON bi.id=d.invest_id")->join("{$per}members m ON m.id=d.investor_uid")->field('d.borrow_id,d.investor_uid,d.borrow_uid,d.capital,sum(d.capital+d.interest-d.interest_fee) benxi,d.total,m.user_name,bi.investor_capital,bi.add_time')->where("d.borrow_id={$iinfo['borrow_id']} and d.invest_id ={$iinfo['id']}")->group('d.investor_uid')->find();
     $detailinfo = M('investor_detail d')->field('d.borrow_id,d.investor_uid,d.borrow_uid,(d.capital+d.interest-d.interest_fee) benxi,d.capital,d.interest,d.interest_fee,d.sort_order,d.deadline')->where("d.borrow_id={$iinfo['borrow_id']} and d.invest_id ={$iinfo['id']}")->select();
     $time = M('borrow_investor')->field('id,add_time')->where("borrow_id={$iinfo['borrow_id']} order by add_time asc")->limit(1)->find();
     if ($binfo['repayment_type'] == 1) {
         $deadline_last = strtotime("+{$binfo['borrow_duration']} day", $time['add_time']);
     } else {
         $deadline_last = strtotime("+{$binfo['borrow_duration']} month", $time['add_time']);
     }
     $this->assign('deadline_last', $deadline_last);
     $this->assign('detailinfo', $detailinfo);
     $this->assign('detail', $detail);
     $type1 = $this->gloconf['BORROW_USE'];
     $binfo['borrow_use'] = $type1[$binfo['borrow_use']];
     $ht = M('hetong')->field('hetong_img,name,dizhi,tel')->find();
     $this->assign("ht", $ht);
     $type = $borrow_config['REPAYMENT_TYPE'];
     //echo $binfo['repayment_type'];
     $binfo['repayment_name'] = $type[$binfo['repayment_type']];
     //	dump($binfo['stamp_img']);exit;
     $iinfo['repay'] = getFloatValue(($iinfo['investor_capital'] + $iinfo['investor_interest']) / $binfo['borrow_duration'], 2);
     $this->assign("bid", "bytp2pD");
     //print_r($type);
     $this->assign('investor_capital_big', $investor_capital_big);
     $this->assign('iinfo', $iinfo);
     $this->assign('binfo', $binfo);
     $this->assign('mBorrow', $mBorrow);
     $this->assign('mInvest', $mInvest);
     $this->assign('borrow_id', $borrow_id);
     $detail_list = M('investor_detail')->field(true)->where("invest_id={$invest_id}")->select();
     $this->assign("detail_list", $detail_list);
     //echo "<pre>";print_r($binfo);echo "</pre>";exit;
     //$this->display("transfer");exit;
     Vendor('Mpdf.mpdf');
     $mpdf = new mPDF('UTF-8', 'A4', '', '', 15, 15, 4, 15);
     $mpdf->useAdobeCJK = true;
     $mpdf->SetAutoFont(AUTOFONT_ALL);
     $mpdf->SetDisplayMode('fullpage');
     $mpdf->SetAutoFont();
     $mpdf->SetHTMLFooter(' >>{PAGENO}<<');
     $mpdf->WriteHTML($this->fetch('transfer'));
     $mpdf->Output('cailaijinfu.pdf', 'I');
     exit;
     $this->display("transfer");
 }
Ejemplo n.º 12
0
function pdf_create($html, $filename, $stream = TRUE, $password = NULL,$isInvoice = NULL,$isGuest = NULL)
{
    require_once(APPPATH . 'helpers/mpdf/mpdf.php');

    $mpdf = new mPDF('','','','','15','15','15','45','',''    // mode - default ''
//'A4',    // format - A4, for example, default ''
//0,     // font size - default 0
//'',    // default font family
//'',    // 15 margin_left
//'',    // 15 margin right
//25,     // 16 margin top
//55,    // margin bottom
//'',     // 9 margin header
//'',     // 9 margin footer
//'L'
);   $mpdf->setAutoBottomMargin = '200';
    $mpdf->useAdobeCJK = true;
	$mpdf->SetAutoFont();
    $mpdf->SetProtection(array('copy','print'), $password, $password);
    if(!(is_dir('./uploads/archive/') OR is_link('./uploads/archive/') ))
        mkdir ('./uploads/archive/','0777');

    if (strpos($filename, lang('invoice')) !== false) {
        $CI = &get_instance();
        $mpdf->setAutoBottomMargin = 'stretch';
        #$mpdf->SetHTMLFooter('<div id="footer">' . $CI->mdl_settings->settings['pdf_invoice_footer'] . '</div>');
    }
    $invoice_array = array();

    $mpdf->WriteHTML($html);

    if ($stream) {
        if (!$isInvoice) {
            return $mpdf->Output($filename . '.pdf', 'I');
        }

        foreach (glob('./uploads/archive/*' . $filename . '.pdf') as $file) {
            array_push($invoice_array, $file);
        }

        if (!empty($invoice_array) AND $isGuest) {
            rsort($invoice_array);
            header('Content-type: application/pdf');
            return readfile($invoice_array[0]);
        } else
            if ($isGuest){
            //todo flashdata is deleted between requests
            //$CI->session->flashdata('alert_error', 'sorry no Invoice found!');
            redirect('guest/view/invoice/' . end($CI->uri->segment_array()));
        }
        $mpdf->Output('./uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf', 'F');
        return $mpdf->Output( $filename . '.pdf', 'I');
    }

    else {

        if($isInvoice) {

            foreach (glob('./uploads/archive/*' .  $filename . '.pdf') as $file) {
                array_push($invoice_array, $file);
            }
            if (!empty($invoice_array) && !is_null($isGuest)) {
                rsort($invoice_array);
                return $invoice_array[0];
            }
            $mpdf->Output('./uploads/archive/' . date('Y-m-d') .'_'. $filename . '.pdf', 'F');
            return './uploads/archive/'.date('Y-m-d').'_'. $filename . '.pdf';
        }
        $mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');

        // DELETE OLD TEMP FILES - Housekeeping
        // Delete any files in temp/ directory that are >1 hrs old
        $interval = 3600;
        if ($handle = @opendir(preg_replace('/\/$/','','./uploads/temp/'))) {
            while (false !== ($file = readdir($handle))) {
                if (($file != "..") && ($file != ".") && !is_dir($file) && ((filemtime('./uploads/temp/'.$file)+$interval) < time()) && (substr($file, 0, 1) !== '.') && ($file !='remove.txt')) { // mPDF 5.7.3
                    unlink('./uploads/temp/'.$file);
                }
            }
            closedir($handle);
        }
        //==============================================================================================================
        return './uploads/temp/' . $filename . '.pdf';
    }
}
Ejemplo n.º 13
0
if ($xx11 != "") {
    $xx10->retrieve_entity_info($xx0e, $xx0f);
    $xx10->id = $xx0e;
    $xx12 = new PDFContent($xx11, $xx0f, $xx10, $_REQUEST["language"]);
    $xx13 = $xx12->getContent();
    $xx14 = $xx12->getSettings();
    $xx15 = $xx1e($xx13["header"], ENT_COMPAT, "utf-8");
    $xx16 = $xx1e($xx13["body"], ENT_COMPAT, "utf-8");
    $xx17 = $xx1e($xx13["footer"], ENT_COMPAT, "utf-8");
    if ($xx14["orientation"] == "landscape") {
        $xx18 = $xx14["format"] . "-L";
    } else {
        $xx18 = $xx14["format"];
    }
    $xx19 = new mPDF('', $xx18, '', 'Arial', $xx14["margin_left"], $xx14["margin_right"], 0, 0, $xx14["margin_top"], $xx14["margin_bottom"]);
    $xx19->SetAutoFont();
    @$xx19->SetHTMLHeader($xx15);
    @$xx19->SetHTMLFooter($xx17);
    @$xx19->WriteHTML($xx16);
    $xx19->Output('cache/' . $xx0f . '.pdf');
    @$xx1f();
    $xx1d('Content-Type: application/pdf');
    $xx1d("Content-length: " . $xx1a("./cache/" . $xx0f . ".pdf"));
    $xx1d("Cache-Control: private");
    $xx1d("Content-Disposition: attachment; filename=" . $xx0f . ".pdf");
    $xx1d("Content-Description: PHP Generated Data");
    echo $xx1b($xx1c("./cache/" . $xx0f . ".pdf", "r"), $xx1a("./cache/" . $xx0f . ".pdf"));
    @$xx20("cache/" . $xx0f . ".pdf");
    exit;
} else {
    echo "ERROR, selected pdf template is wrong";
Ejemplo n.º 14
0
function exportToPdf($content, $fileName = "reports.pdf")
{
    include_once SP_LIBPATH . "/mpdf/mpdf.php";
    $mpdf = new mPDF();
    $mpdf->useAdobeCJK = true;
    $mpdf->SetAutoFont(AUTOFONT_ALL);
    $spider = new Spider();
    $ret = $spider->getContent(SP_CSSPATH . "/screen.css");
    $stylesheet = str_replace("../../../images", SP_IMGPATH, $ret['page']);
    $mpdf->WriteHTML($stylesheet, 1);
    $mpdf->SetDisplayMode('fullpage');
    $mpdf->WriteHTML($content, 2);
    $mpdf->Output($fileName, "I");
    exit;
}
Ejemplo n.º 15
0
 public function GetPreparedMPDF(&$mpdf, $record, $module, $language)
 {
     require_once "modules/PDFMaker/resources/mpdf/mpdf.php";
     $focus = CRMEntity::getInstance($module);
     $TemplateContent = array();
     foreach ($focus->column_fields as $cf_key => $cf_value) {
         $focus->column_fields[$cf_key] = '';
     }
     $focus->retrieve_entity_info($record, $module);
     $focus->id = $record;
     $PDFContent = $this->GetPDFContentRef($module, $focus, $language);
     $Settings = $PDFContent->getSettings();
     $name = $PDFContent->getFilename();
     $pdf_content = $PDFContent->getContent();
     $header_html = $pdf_content["header"];
     $body_html = $pdf_content["body"];
     $footer_html = $pdf_content["footer"];
     if ($Settings["orientation"] == "landscape") {
         $orientation = "L";
     } else {
         $orientation = "P";
     }
     $format = $Settings["format"];
     // variable $format used in mPDF constructor
     $formatPB = $format;
     // variable $formatPB used in <pagebreak ... /> contruction
     if (strpos($format, ";") > 0) {
         $tmpArr = explode(";", $format);
         $format = array($tmpArr[0], $tmpArr[1]);
         $formatPB = $format[0] . "mm " . $format[1] . "mm";
     } elseif ($Settings["orientation"] == "landscape") {
         $format .= "-L";
         $formatPB .= "-L";
     }
     if (!is_object($mpdf)) {
         $mpdf = new mPDF('', $format, '', '', $Settings["margin_left"], $Settings["margin_right"], 0, 0, $Settings["margin_top"], $Settings["margin_bottom"], $orientation);
         $mpdf->SetAutoFont();
         $this->mpdf_preprocess($mpdf, $templateid, $PDFContent->bridge2mpdf);
         @$mpdf->SetHTMLHeader($header_html);
     } else {
         $this->mpdf_preprocess($mpdf, $templateid, $PDFContent->bridge2mpdf);
         @$mpdf->SetHTMLHeader($header_html);
         @$mpdf->WriteHTML('<pagebreak sheet-size="' . $formatPB . '" orientation="' . $orientation . '" margin-left="' . $Settings["margin_left"] . 'mm" margin-right="' . $Settings["margin_right"] . 'mm" margin-top="0mm" margin-bottom="0mm" margin-header="' . $Settings["margin_top"] . 'mm" margin-footer="' . $Settings["margin_bottom"] . 'mm" />');
     }
     @$mpdf->SetHTMLFooter($footer_html);
     @$mpdf->WriteHTML($body_html);
     $this->mpdf_postprocess($mpdf, $PDFContent->bridge2mpdf);
     //check in case of some error when $mpdf object is not set it is caused by lack of permissions - i.e. when workflow template is 'none'
     if (!is_object($mpdf)) {
         @($mpdf = new mPDF());
         @$mpdf->WriteHTML(vtranslate("LBL_PERMISSION", "PDFMaker"));
     }
     $name = str_replace(array(' ', '/', ','), array('-', '-', '-'), $name);
     return $name;
 }
Ejemplo n.º 16
0
        $note->modified_user_id = $current_user->id;
        $note->created_by = $current_user->id;
        $note->name = $file_name;
        $note->parent_type = $bean->module_dir;
        $note->parent_id = $bean->id;
        $note->file_mime_type = 'application/pdf';
        $note->filename = $file_name;
        if ($bean->module_dir == 'Contacts') {
            $note->contact_id = $bean->id;
            $note->parent_type = 'Accounts';
            $note->parent_id = $bean->account_id;
        }
        $note->save();
        $fp = fopen($sugar_config['upload_dir'] . 'nfile.pdf', 'wb');
        fclose($fp);
        $pdf_history->SetAutoFont();
        $pdf_history->SetHTMLHeader($header);
        $pdf_history->SetHTMLFooter($footer);
        $pdf_history->WriteHTML($printable);
        $pdf_history->Output($sugar_config['upload_dir'] . 'nfile.pdf', 'F');
        $pdf->AddPage();
        $pdf->SetAutoFont();
        $pdf->SetHTMLHeader($header);
        $pdf->SetHTMLFooter($footer);
        $pdf->WriteHTML($printable);
        rename($sugar_config['upload_dir'] . 'nfile.pdf', $sugar_config['upload_dir'] . $note->id);
    } catch (mPDF_exception $e) {
        echo $e;
    }
}
$pdf->Output($file_name, "D");
 function _pdf_create($content = null, $fileName = null)
 {
     // create pdf by tcpdf
     /*$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
     		$pdf->SetCreator(PDF_CREATOR);
     		$pdf->SetAuthor('Nicola Asuni');
     		$pdf->SetTitle('TCPDF Example 001');
     		$pdf->SetSubject('TCPDF Tutorial');
     		$pdf->SetKeywords('TCPDF, PDF, example, test, guide');		
     		$pdf->setFooterData(array(0,64,0), array(0,64,128));
     		
     		$pdf->SetPrintFooter(false);
     		$pdf->SetPrintHeader(false);
     		$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);		
     		$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);		
     		$pdf->setFontSubsetting(true);		
     		$pdf->SetFont('times', '', 11, '', true);		
     		$pdf->AddPage();
     		$pdf->writeHTMLCell(0, 0, '', '', $content, 0, 1, 0, true, '', true);
     		$pdf->Output(IMAGE_LOCATION.$fileName.'.pdf', 'F');*/
     $this->autoRender = false;
     $this->layout = 'ajax';
     error_reporting(0);
     $mpdf = new mPDF();
     $mpdf->useAdobeCJK = true;
     $mpdf->SetAutoFont(AUTOFONT_ALL);
     $mpdf->WriteHTML($content);
     $mpdf->Output(IMAGE_LOCATION . $fileName . '.pdf', 'F');
 }
Ejemplo n.º 18
0
 function email($purchase_id, $to, $cc = NULL, $bcc = NULL, $from_name, $from, $subject, $note)
 {
     $data['message'] = validation_errors() ? validation_errors() : $this->session->flashdata('message');
     $data['rows'] = $this->inventories_model->getAllInventoryItems($purchase_id);
     $inv = $this->inventories_model->getInventoryByPurchaseID($purchase_id);
     $supplier_id = $inv->supplier_id;
     $data['supplier'] = $this->inventories_model->getSupplierByID($supplier_id);
     $data['inv'] = $inv;
     $data['pid'] = $purchase_id;
     $data['page_title'] = $this->lang->line("inventory");
     $html = $this->load->view('view_inventory', $data, TRUE);
     $this->load->library('MPDF/mpdf');
     $mpdf = new mPDF('utf-8', 'A4', '12', '', 10, 10, 10, 10, 9, 9);
     $mpdf->useOnlyCoreFonts = true;
     $mpdf->SetProtection(array('print'));
     $mpdf->SetTitle(SITE_NAME);
     $mpdf->SetAuthor(SITE_NAME);
     $mpdf->SetCreator(SITE_NAME);
     $mpdf->SetDisplayMode('fullpage');
     $mpdf->SetAutoFont();
     $stylesheet = file_get_contents('assets/css/bootstrap-' . THEME . '.css');
     $mpdf->WriteHTML($stylesheet, 1);
     $search = array("<div class=\"row-fluid\">", "<div class=\"span6\">");
     $replace = array("<div style='width: 100%;'>", "<div style='width: 48%; float: left;'>");
     $html = str_replace($search, $replace, $html);
     $name = $this->lang->line("inventory") . "-" . $inv->id . ".pdf";
     $mpdf->WriteHTML($html);
     $mpdf->Output($name, 'F');
     if ($note) {
         $message = html_entity_decode($note) . "<br><hr>" . $html;
     } else {
         $message = $html;
     }
     $this->load->library('email');
     $config['mailtype'] = 'html';
     $config['wordwrap'] = TRUE;
     $this->email->initialize($config);
     $this->email->from($from, $from_name);
     $this->email->to($to);
     if ($cc) {
         $this->email->cc($cc);
     }
     if ($bcc) {
         $this->email->bcc($bcc);
     }
     $this->email->subject($subject);
     $this->email->message($message);
     $this->email->attach($name);
     if ($this->email->send()) {
         // email sent
         unlink($name);
         return true;
     } else {
         //email not sent
         unlink($name);
         //echo $this->email->print_debugger();
         return false;
     }
 }
Ejemplo n.º 19
0
function createPDFAndSaveFile($templates, $focus, $modFocus, $file_name, $moduleName, $language)
{
    global $x0b, $x0c, $x0d, $x0e, $x0f, $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17, $x18, $x19, $x1a, $x1b, $x1c, $x1d, $x1e, $x1f, $x20, $x21, $x22, $x23, $x24, $x25, $x26;
    $db = "adb";
    $cu = "current_user";
    $dl = "default_language";
    global ${$db}, ${$cu}, ${$dl};
    $date_var = $x10("Y-m-d H:i:s");
    $ownerid = $focus->column_fields["assigned_user_id"];
    if (!isset($ownerid) || $ownerid == "") {
        $ownerid = ${$cu}->id;
    }
    $current_id = ${$db}->getUniqueID("vtiger_crmentity");
    $templates = $x1d($templates, ";");
    $Templateids = $x11(";", $templates);
    $x17("memory_limit", "128M");
    $name = "";
    if (!$language || $language == "") {
        $language = ${$dl};
    }
    foreach ($Templateids as $templateid) {
        $PDFContent = new PDFContent($templateid, $moduleName, $modFocus, $language);
        $pdf_content = $PDFContent->getContent();
        $Settings = $PDFContent->getSettings();
        if ($name == "") {
            $name = $PDFContent->getFilename();
        }
        $header_html = $x14($pdf_content["header"], ENT_COMPAT, "utf-8");
        $body_html = $x14($pdf_content["body"], ENT_COMPAT, "utf-8");
        $footer_html = $x14($pdf_content["footer"], ENT_COMPAT, "utf-8");
        $encoding = $Settings["encoding"];
        if ($Settings["orientation"] == "landscape") {
            $format = $Settings["format"] . "-L";
        } else {
            $format = $Settings["format"];
        }
        if (!isset($mpdf)) {
            $mpdf = new mPDF('', $format, '', 'Arial', $Settings["margin_left"], $Settings["margin_right"], 0, 0, $Settings["margin_top"], $Settings["margin_bottom"]);
            $mpdf->SetAutoFont();
            @$mpdf->SetHTMLHeader($header_html);
        } else {
            @$mpdf->SetHTMLHeader($header_html);
            @$mpdf->WriteHTML('<pagebreak sheet-size="' . $format . '" margin-left="' . $Settings["margin_left"] . 'mm" margin-right="' . $Settings["margin_right"] . 'mm" margin-top="0mm" margin-bottom="0mm" margin-header="' . $Settings["margin_top"] . 'mm" margin-footer="' . $Settings["margin_bottom"] . 'mm" />');
        }
        @$mpdf->SetHTMLFooter($footer_html);
        @$mpdf->WriteHTML($body_html);
    }
    $upload_file_path = decideFilePath();
    if ($name != "") {
        $file_name = $name . ".pdf";
    }
    $mpdf->Output($upload_file_path . $current_id . "_" . $file_name);
    $filesize = $x13($upload_file_path . $current_id . "_" . $file_name);
    $filetype = "application/pdf";
    $sql1 = "insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,createdtime,modifiedtime) values(?, ?, ?, ?, ?, ?, ?)";
    $params1 = array($current_id, ${$cu}->id, $ownerid, "Documents Attachment", $focus->column_fields["description"], ${$db}->formatDate($date_var, true), ${$db}->formatDate($date_var, true));
    ${$db}->pquery($sql1, $params1);
    $sql2 = "insert into vtiger_attachments(attachmentsid, name, description, type, path) values(?, ?, ?, ?, ?)";
    $params2 = array($current_id, $file_name, $focus->column_fields["description"], $filetype, $upload_file_path);
    $result = ${$db}->pquery($sql2, $params2);
    $sql3 = 'insert into vtiger_seattachmentsrel values(?,?)';
    ${$db}->pquery($sql3, array($focus->id, $current_id));
    $sql4 = "UPDATE vtiger_notes SET filesize=?, filename=? WHERE notesid=?";
    ${$db}->pquery($sql4, array($filesize, $file_name, $focus->id));
    return true;
}
Ejemplo n.º 20
0
function pdf_create($html, $filename, $stream = TRUE, $password = NULL, $isInvoice = NULL, $isGuest = NULL)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $mpdf = new mPDF();
    $mpdf->useAdobeCJK = true;
    $mpdf->SetAutoFont();
    $mpdf->SetProtection(array('copy', 'print'), $password, $password);
    if (!(is_dir('./uploads/archive/') or is_link('./uploads/archive/'))) {
        mkdir('./uploads/archive/', '0777');
    }
    $CI =& get_instance();
    if ((strpos($filename, lang('invoice')) !== false or strpos($filename, lang('quote')) !== false) && !empty($CI->mdl_settings->settings['pdf_invoice_footer'])) {
        $mpdf->setAutoBottomMargin = 'stretch';
        $footerHTML = '<div id="footer">' . $CI->mdl_settings->settings['pdf_invoice_footer'] . '</div>';
        $footerHTML .= '<div class="footer-including-page-number">' . lang('page') . ' {PAGENO} / {nb}</div>';
        $mpdf->SetHTMLFooter($footerHTML);
    } else {
        $mpdf->SetHTMLFooter('<div id="footer" class="footer-including-page-number">' . lang('page') . ' {PAGENO} / {nb}</div>');
    }
    $invoice_array = array();
    $mpdf->WriteHTML($html);
    if ($stream) {
        if (!$isInvoice) {
            return $mpdf->Output($filename . '.pdf', 'I');
        }
        foreach (glob('./uploads/archive/*' . $filename . '.pdf') as $file) {
            array_push($invoice_array, $file);
        }
        if (!empty($invoice_array) and $isGuest) {
            rsort($invoice_array);
            header('Content-type: application/pdf');
            return readfile($invoice_array[0]);
        } else {
            if ($isGuest) {
                //todo flashdata is deleted between requests
                //$CI->session->flashdata('alert_error', 'sorry no Invoice found!');
                redirect('guest/view/invoice/' . end($CI->uri->segment_array()));
            }
        }
        $mpdf->Output('./uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf', 'F');
        return $mpdf->Output($filename . '.pdf', 'I');
    } else {
        if ($isInvoice) {
            foreach (glob('./uploads/archive/*' . $filename . '.pdf') as $file) {
                array_push($invoice_array, $file);
            }
            if (!empty($invoice_array) && !is_null($isGuest)) {
                rsort($invoice_array);
                return $invoice_array[0];
            }
            $mpdf->Output('./uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf', 'F');
            return './uploads/archive/' . date('Y-m-d') . '_' . $filename . '.pdf';
        }
        $mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');
        // DELETE OLD TEMP FILES - Housekeeping
        // Delete any files in temp/ directory that are >1 hrs old
        $interval = 3600;
        if ($handle = @opendir(preg_replace('/\\/$/', '', './uploads/temp/'))) {
            while (false !== ($file = readdir($handle))) {
                if ($file != ".." && $file != "." && !is_dir($file) && filemtime('./uploads/temp/' . $file) + $interval < time() && substr($file, 0, 1) !== '.' && $file != 'remove.txt') {
                    // mPDF 5.7.3
                    unlink('./uploads/temp/' . $file);
                }
            }
            closedir($handle);
        }
        //==============================================================================================================
        return './uploads/temp/' . $filename . '.pdf';
    }
}
Ejemplo n.º 21
0
 public function downliuzhuanfile()
 {
     $per = C('DB_PREFIX');
     $borrow_config = (require C("APP_ROOT") . "Conf/borrow_config.php");
     $type = $borrow_config['REPAYMENT_TYPE'];
     $invest_id = intval($_GET['id']);
     $iinfo = M("transfer_borrow_investor")->field(true)->where("investor_uid={$this->uid} AND id={$invest_id}")->find();
     $binfo = M('transfer_borrow_info')->field(true)->find($iinfo['borrow_id']);
     $tou = M('transfer_investor_detail')->where(" borrow_id={$iinfo['borrow_id']} AND investor_uid={$this->uid} ")->find();
     $mBorrow = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,m.user_name')->where("m.id={$binfo['borrow_uid']}")->find();
     $mInvest = M("members m")->join("{$per}member_info mi ON mi.uid=m.id")->field('mi.real_name,m.user_name')->where("m.id={$iinfo['investor_uid']}")->find();
     if (!is_array($tou)) {
         $mBorrow['real_name'] = hidecard($mBorrow['real_name'], 5);
     }
     $binfo['repayment_name'] = $type[$binfo['repayment_type']];
     $this->assign("bid", "LZBHT-" . str_repeat("0", 5 - strlen($binfo['id'])) . $binfo['id']);
     $detailinfo = M('transfer_investor_detail d')->join("{$per}transfer_borrow_investor bi ON bi.id=d.invest_id")->join("{$per}members m ON m.id=d.investor_uid")->field('d.borrow_id,d.investor_uid,d.borrow_uid,d.capital,sum(d.capital+d.interest-d.interest_fee) benxi,d.total,m.user_name,bi.investor_capital,bi.add_time')->where("d.borrow_id={$iinfo['borrow_id']} and d.invest_id ={$iinfo['id']}")->group('d.investor_uid')->find();
     $time = M('transfer_borrow_investor')->field('id,add_time')->where("borrow_id={$iinfo['borrow_id']} order by add_time asc")->limit(1)->find();
     $deadline_last = strtotime("+{$binfo['borrow_duration']} month", $time['add_time']);
     $this->assign('deadline_last', $deadline_last);
     $this->assign('detailinfo', $detailinfo);
     $type1 = $this->gloconf['BORROW_USE'];
     $binfo['borrow_use'] = $type1[$binfo['borrow_use']];
     $type = $borrow_config['REPAYMENT_TYPE'];
     //echo $binfo['repayment_type'];
     $binfo['repayment_name'] = $type[$binfo['repayment_type']];
     $iinfo['repay'] = getFloatValue(($iinfo['investor_capital'] + $iinfo['investor_interest']) / $binfo['borrow_duration'], 2);
     $iinfo['investor_capital'] = cny($iinfo['investor_capital']);
     $binfo['borrow_interest_rate'] = substr(cny($binfo['borrow_interest_rate']), 0, -3);
     $this->assign('iinfo', $iinfo);
     //dump($binfo);die;
     $this->assign('binfo', $binfo);
     $this->assign('mBorrow', $mBorrow);
     $this->assign('mInvest', $mInvest);
     $detail_list = M('transfer_investor_detail')->field(true)->where("invest_id={$invest_id}")->select();
     $this->assign("detail_list", $detail_list);
     $ht = M('hetong')->field('hetong_img,name,dizhi,tel')->find();
     $this->assign("ht", $ht);
     if (isset($_GET['dl'])) {
         // 带有flag标记并且为dl
         Vendor('Mpdf.mpdf');
         $mpdf = new mPDF('UTF-8', 'A4', '', '', 15, 15, 44, 15);
         $mpdf->useAdobeCJK = true;
         $mpdf->SetAutoFont(AUTOFONT_ALL);
         $mpdf->SetDisplayMode('fullpage');
         $mpdf->SetAutoFont();
         $mpdf->SetHTMLFooter(' >>{PAGENO}<<');
         $mpdf->WriteHTML($this->fetch('transfer'));
         $mpdf->Output('zgtrbao.pdf', 'I');
         exit;
     }
     $this->display("transfer");
 }
Ejemplo n.º 22
0
 public function process(Vtiger_Request $request)
 {
     $response = new Vtiger_Response();
     $debug_fs = $report_chartpdf = "";
     if (vtlib_isModuleActive("PDFMaker") === true && file_exists('modules/PDFMaker/resources/mpdf/mpdf.php')) {
         //$this->checkInstallationMemmoryLimit();
         if (file_exists("modules/ITS4YouReports/classes/Reports4YouDefault.css")) {
             $report_html_style = file_get_contents("modules/ITS4YouReports/classes/Reports4YouDefault.css");
         }
         $report_html = $_REQUEST["form_report_html"];
         $report_head = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n                        <html>\n                          <head>\n                          </head>\n                          <body>";
         //$report_htmlpdf = "<div>$report_html</div>";
         if (isset($_REQUEST["form_chart_canvas"]) && $_REQUEST["form_chart_canvas"] != "") {
             $chart_image = "data:image/png;base64," . $_REQUEST["form_chart_canvas"];
             $report_chartpdf = "\n                <div style='height:21cm;text-align:center;'><img src='" . $chart_image . "'></div>";
         }
         $report_foot = "</body>\n                        </html>";
         require_once 'modules/PDFMaker/resources/mpdf/mpdf.php';
         //                     $mpdf = new mPDF('',    // mode - default ''
         //                      2	 '',    // format - A4, for example, default ''
         //                      3	 0,     // font size - default 0
         //                      4	 '',    // default font family
         //                      5	 15,    // margin_left
         //                      6	 15,    // margin right
         //                      7	 16,     // margin top
         //                      8	 16,    // margin bottom
         //                      9	 9,     // margin header
         //                      10	 9,     // margin footer
         //                      11	 'L');  // L - landscape, P - portrait
         $report_filename = $_REQUEST["form_filename"] . ".pdf";
         $export_pdf_format = $_REQUEST["form_export_pdf_format"];
         // class mPDF ([ string $mode [, mixed $format [, float $default_font_size [, string $default_font [, float $margin_left , float $margin_right , float $margin_top , float $margin_bottom , float $margin_header , float $margin_footer [, string $orientation ]]]]]])
         $mpdf = new mPDF('utf-8', "{$export_pdf_format}", "", "", "5", "5", "0", "5", "5", "5");
         // Portrait = $mpdf=new mPDF('utf-8', 'A4');
         // Landscape = $mpdf=new mPDF('utf-8', 'A4-L');
         //error_reporting(63);ini_set("display_errors",1);
         $mpdf->keep_table_proportions = true;
         $mpdf->SetAutoFont();
         $mpdf->WriteHTML($report_html_style, 1);
         $mpdf->WriteHTML($report_head);
         if (isset($_REQUEST["form_report_name"]) && $_REQUEST["form_report_name"] != "") {
             $form_report_name = vtlib_purify($_REQUEST["form_report_name"]);
             $return_name = "<table class='rpt4youTableText' width='100%'>";
             $return_name .= "<tr>";
             $return_name .= "<td colspan='1' class='rpt4youGrpHeadInfoText' width='100%' style='border:0px;'>";
             $return_name .= $form_report_name;
             $return_name .= "</td>";
             $return_name .= "</tr>";
             $return_name .= "</table>";
             $mpdf->WriteHTML($return_name);
         }
         //echo "<pre>";print_r($_REQUEST);echo "</pre>";
         //exit;
         $mpdf->WriteHTML($report_html);
         if ($report_chartpdf != "") {
             $mpdf->AddPage('L');
             $mpdf->WriteHTML($report_chartpdf);
         }
         $mpdf->WriteHTML($report_foot);
         $mpdf->Output();
         exit;
     }
 }
Ejemplo n.º 23
0
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                                <br>
                            </td>
                        </tr>    
                    </tbody>    
                </table>
                <div class="row" style="text-align: right;">
                    <label id="hStory" style="text-align: right">สอบถามรายละเอียดเพิ่มเติมได้ที่  40147 (ชลวภรณ์)</label>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

<?php 
$html = ob_get_contents();
ob_end_clean();
$stylesheet = file_get_contents('assets/css/print.css');
// external css
$pdf = new mPDF('th', 'A4', '0', 'thsarabunnew', 20, 15, 5, 30);
$pdf->SetAutoFont(AUTOFONT_THAIVIET);
$pdf->SetDisplayMode('fullpage');
$pdf->WriteHTML($stylesheet, 1);
$pdf->WriteHtml($html, 2);
$pdf->Output();
<?php

//
$timeo_start = microtime(true);
ini_set("memory_limit", "128M");
//
$html = "\r\n<style>\r\n\r\nbody { font-family: sans; text-align: justify; }\r\np { font-family: sans; }\r\ndiv { font-family: sans; }\r\n\r\n</style>\r\n\r\n<p>This document includes many languages. Selection of appropriate fonts is done automatically by using <b>AutoFont</b>. </p>\r\n<h3>Pangrams - (from Wikipedia) </h3>\r\n<p>The quick brown fox jumps over a lazy dog</p>\r\n\r\n<h4>Bulgarian</h4>\r\n<p>Жълтата дюля беше щастлива, че пухът, който цъфна, замръзна като гьон.</p> \r\n\r\n<p>За миг бях в чужд плюшен скърцащ фотьойл. </p>\r\n\r\n<h4>Catalan</h4>\r\n<p>Jove xef, porti whisky amb quinze glaçons d'hidrogen, coi! </p>\r\n\r\n<p>Aqueix betzol, Jan, comprava whisky de figa </p>\r\n\r\n<h4>Czech</h4>\r\n<p>Příliš žluťoučký kůň úpěl ďábelské ódy </p>\r\n\r\n<h4>Danish</h4>\r\n<p>Høj bly gom vandt fræk sexquiz på wc </p>\r\n\r\n<h4>Dutch</h4>\r\n<p>Doch Bep, flink sexy qua vorm, zwijgt </p>\r\n\r\n<p>Pa's wijze lynx bezag vroom het fikse aquaduct </p>\r\n\r\n<h4>Finnish</h4>\r\n<p>Törkylempijä vongahdus </p>\r\n\r\n<h4>French</h4>\r\n<p>Portez ce vieux whisky au juge blond qui fume </p>\r\n\r\n<p>Bâchez la queue du wagon-taxi avec les pyjamas du fakir </p>\r\n\r\n<p>Voyez le brick géant que j'examine près du wharf </p>\r\n\r\n<h4>German</h4>\r\n<p>Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich </p>\r\n\r\n<p>\"Fix, Schwyz!\" quäkt Jürgen blöd vom Paß </p>\r\n\r\n<p>\"Falsches Üben von Xylophonmusik quält jeden größeren Zwerg\"</p>\r\n\r\n<h4>Hungarian</h4>\r\n<p>Egy hűtlen vejét fülöncsípő, dühös mexikói úr Wesselényinél mázol Quitóban. </p>\r\n\r\n<h4>Icelandic</h4>\r\n<p>Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa </p>\r\n\r\n<h4>Irish</h4>\r\n<p>D'fhuascail Íosa Úrmhac na hÓighe Beannaithe pór Éava agus Ádhaimh </p>\r\n\r\n<p>D'ḟuascail Íosa Úrṁac na hÓiġe Beannaiṫe pór Éaḃa agus Áḋaiṁ </p>\r\n\r\n<h4>Italian</h4>\r\n<p>\"Quel fez sghembo copre davanti\" </p>\r\n\r\n<p>\"Ma la volpe col suo balzo ha raggiunto il quieto Fido\" </p>\r\n\r\n<p>\"Quel vituperabile xenofobo zelante assaggia il whisky ed esclama: alleluja!\" </p>\r\n\r\n<h4>Lithuanian</h4>\r\n<p>Įlinkdama fechtuotojo špaga sublykčiojusi pragręžė apvalų arbūzą </p>\r\n\r\n<h4>Norwegian</h4>\r\n<p>Vår sære Zulu fra badeøya spilte jo whist og quickstep i min taxi. </p>\r\n\r\n<p>Høvdingens kjære squaw får litt pizza i Mexico by </p>\r\n\r\n<h4>Polish</h4>\r\n<p>Pójdźże, kiń tę chmurność w głąb flaszy! </p>\r\n\r\n<p>Pchnąć w tę łódź jeża lub ośm skrzyń fig. </p>\r\n\r\n<p>Mężny bądź, chroń pułk twój i sześć flag. </p>\r\n\r\n<h4>Portuguese</h4>\r\n<p>Blitz prende ex-vesgo com cheque fajuto. </p>\r\n\r\n<p>Gazeta publica hoje no jornal uma breve nota de faxina na quermesse. </p>\r\n\r\n<p>À noite, vovô Kowalsky vê o ímã cair no pé do pingüim queixoso e vovó põe açúcar no chá de tâmaras do jabuti feliz. </p>\r\n\r\n<p>Luís argüia à Júlia que «brações, fé, chá, óxido, pôr, zângão» eram palavras do português. </p>\r\n\r\n<h4>Romanian</h4>\r\n<p>Gheorghe, obezul, a reuşit să obţină jucându-se un flux în Quebec de o mie kilowaţioră. </p>\r\n\r\n<h4>Russian</h4>\r\n<p>В чащах юга жил бы цитрус? Да, но фальшивый экземпляр! </p>\r\n\r\n<p>(Using quasiobsolete spelling for last word to include ъ) В чащах юга жил бы цитрус? Да, но фальшивый экземпляръ! </p>\r\n\r\n<p>Эх, чужак! Общий съём цен шляп (юфть) — вдрызг! </p>\r\n\r\n<p>Экс-граф? Плюш изъят. Бьём чуждый цен хвощ! </p>\r\n\r\n<p>Съешь ещё этих мягких французских булок, да выпей же чаю. </p>\r\n\r\n<p>Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства. </p>\r\n\r\n<h4>Serbian</h4>\r\n<p>Љубазни фењерџија чађавог лица хоће да ми покаже штос. </p>\r\n\r\n<p>Ljubazni fenjerdžija čađavog lica hoće da mi pokaže štos. </p>\r\n\r\n<h4>Slovene</h4>\r\n<p>Šerif bo za vajo spet kuhal domače žgance </p>\r\n\r\n<p>Piškur molče grabi fižol z dna cezijeve hoste </p>\r\n\r\n<h4>Spanish</h4>\r\n<p>El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja. </p>\r\n\r\n<p>El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y frío, añoraba a su querido cachorro. </p>\r\n\r\n<p>Jovencillo emponzoñado de whisky: ¡qué figurota exhibe! </p>\r\n\r\n<p>Ese libro explica en su epígrafe las hazañas y aventuras de Don Quijote de la Mancha en Kuwait. </p>\r\n\r\n<p>Queda gazpacho, fibra, látex, jamón, kiwi y viñas. </p>\r\n\r\n<p>Whisky bueno: ¡excitad mi frágil pequeña vejez! </p>\r\n\r\n<h4>Swedish</h4>\r\n<p>Flygande bäckasiner söka hwila på mjuka tuvor. </p>\r\n\r\n<p>Yxskaftbud, ge vår wczonmö iqhjälp. </p>\r\n\r\n<h4>Ukrainian</h4>\r\n<p>Чуєш їх, доцю, га? Кумедна ж ти, прощайся без ґольфів! </p>\r\n\r\n<p>Жебракують філософи при ґанку церкви в Гадячі, ще й шатро їхнє п'яне знаємо. </p>\r\n\r\n<h4>Turkish (pangram)</h4>\r\n<p>Pijamalı hasta yağız şoföre çabucak güvendi. </p>\r\n\r\n<h4>Greek</h4>\r\n<h5>Monotonic</h5>\r\n<p>Πάτερ ημών ο εν τοις ουρανοίς αγιασθήτω το όνομά σου· ελθέτω η βασιλεία σου· γενηθήτω το θέλημά σου, ως εν ουρανώ και επί της γης· τον άρτον ημών τον επιούσιον δος ημίν σήμερον· και άφες ημίν τα οφελήματα ημών, ως και ημείς αφίεμεν τοις οφειλέταις ημών· και μη εισενέγκης ημάς εις πειρασμόν, αλλά ρύσαι ημάς από του πονηρού. αμήν. </p>\r\n\r\n<h5>Polytonic</h5>\r\n<p>Πάτερ ἡμῶν ὁ ἐν τοῖς οὐρανοῖς ἁγιασθήτω τὸ ὄνομά σου· ἐλθέτω ἡ βασιλεία σου· γενηθήτω τὸ θέλημά σου, ὡς ἐν οὐρανῷ καὶ ἐπὶ τῆς γῆς· τὸν ἄρτον ἡμῶν τὸν ἐπιούσιον δὸς ἡμῖν σήμερον· καὶ ἄφες ἡμῖν τὰ ὀφελήματα ἡμῶν, ὡς καὶ ἡμεῖς ἀφίεμεν τοῖς ὀφειλέταις ἡμῶν· καὶ μὴ εἰσενέγκῃς ἡμᾶς εἰς πειρασμόν, ἀλλὰ ρῦσαι ἡμᾶς ἀπὸ τοῦ πονηροῦ. ἀμήν. </p>\r\n\r\n\r\n<h3>Languages</h3>\r\n<p>(The following are used for demonstration purposes only. Some of the following excerpts are taken from web pages from the BBC Foreign News just to show the script - I have no idea what they actually say!!)</p>\r\n\r\n<h4>Latvian</h4>\r\n<p>Latvijas institūts veic konsultatīvi koordinējošas funkcijas Latvijas starptautiskās atpazīstamības jomā; \r\ngatavo un izplata plašai sabiedrībai pieejamu, svarīgu pamatinformāciju saturošu, viegli izprotamu un iegaumējamu, kā arī pozitīvu iespaidu izraisošu vispārēju pamatinformāciju par Latviju, Latvijas dabu, sabiedrību, kultūru un vēsturi;</p> \r\n\r\n<h4>Azeri (az)</h4>\r\n<p>Qaz kəmərinin açılışında İran və Ermənistanın prezidentləri iştirak ediblər.</p>\r\n\r\n<p>İran qazını Ermənistana nəql edəcək bu kəmər Yerevan üçün xüsusi önəm daşıyır, belə ki, böyük etnik azərbaycanlı toplumuna malik İran təlatümlü regionda öz maraqlarını qorumaq üçün çox vaxt Ermənistanın müttəfiqi kimi görünüb.</p>\r\n\r\n<h4>Bulgarian</h4>\r\n<p>Последните донаборници в българската армия ще служат 9 месеца, както постановява закона 6 месеца е съкратеният срок само за завършилите висше образование - така министър Веселин Близнаков отхвърли различните интерпретации в публичното пространство по темата. Министърът на отбраната разформирова в Казанлък Втората ни рота от Ашраф и Втори пехотен взвод, завърнал се от миротворческа мисия от Баня Лука в Босна и Херцеговина.</p> \r\n\r\n<h4>Macedonian (mk)</h4>\r\n<p>Буш рече оти е суштински да се осигури безбедноста на Багдад и да се обнови нормалниот живот во остатокот од земјата.</p>\r\n\r\n<p>Митрева ја прозва владата за индолентен однос кон ова битката за зачувивање на уставното име на земјата.</p>\r\n\r\n<h4>Uzbek (uz)</h4>\r\n<p>Ироқликлар орасида тушкунлик ортиб бораяпти</p>\r\n\r\n<p>Ироқда ўтказилган сўнгги жамоатчилик фикрини ўрганиш натижаларига кўра, мамлакат келажаги борасида тушкун кайфиятда бўлган ироқликлар сони тобора ортиб бормоқда.</p>\r\n\r\n<h4>Kyrgyz (ky)</h4>\r\n<p>Казакстанда айыл тургундары уруша кетип 3 киши каза тапты\r\nКазакстандын Алматы шаарынын тушундагы айылда эки киши ортосундагы чатак чоң урушка айланып, ага элүү чакты киши аралашкан.</p>\r\n\r\n\r\n \r\n<h4>Albanian (sq)</h4>\r\n<p>Një anketë sugjeron se irakianët kanë një pesimizëm në rritje për të ardhmen e vendit të tyre.</p>\r\n\r\n<p>Presidenti shqiptar Alfred Moisiu dekretoi të hënën ndryshimet e propozuara nga kryeministri Sali Berisha në kabinetin e tij, pas zgjedhjeve lokale.</p>\r\n\r\n\r\n<h4>Vietnamese (vi)</h4>\r\n<p>Một khảo sát mới cho biết người dân Iraq ngày càng cảm thấy bi quan và không tin tưởng vào chính phủ cũng như liên quân</p>\r\n\r\n<p>Nga đang thực hiện chiến dịch cứu hộ sau khi có vụ nổ khí methane tại một mỏ than ở Siberia làm ít nhất 61 người thiệt mạng</p>\r\n\r\n<h4>Thai (pangram)</h4>\r\n<p>เป็นมนุษย์สุดประเสริฐเลิศคุณค่า กว่าบรรดาฝูงสัตว์เดรัจฉาน จงฝ่าฟันพัฒนาวิชาการ อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า หัดอภัยเหมือนกีฬาอัชฌาสัย ปฏิบัติประพฤติกฎกำหนดใจ พูดจาให้จ๊ะๆ จ๋า น่าฟังเอยฯ </p>\r\n\r\n\r\n<!-- RTL LANGUAGES -->\r\n<div style=\"text-align: right;\">\r\n\r\n<h4>Hebrew (pangram)</h4>\r\n<p>דג סקרן שט בים מאוכזב ולפתע מצא חברה </p>\r\n\r\n<p>או הנסה אלהים, לבוא לקחת לו גוי מקרב גוי, במסת באתת ובמופתים ובמלחמה וביד חזקה ובזרוע נטויה, ובמוראים גדלים: ככל אשר-עשה לכם יהוה אלהיכם, במצרים--לעיניך </p>\r\n\r\n\r\n\r\n\r\n<h4>Arabic</h4>\r\n<p>قال الرئيس الامريكي جورج بوش في حديث متلفز في الذكرى الرابعة للغزو الامريكي للعراق ان الاولوية حاليا لاعادة الامن للعراق.</p>\r\n\r\n<p>هل ستسفر الجهود الدبلوماسية الجارية عن حلول؟ وكيف تنظر للاتهامات لبعض هذه الدول بالتدخل في الشأن العراقي، والتورط في دعم عمليات العنف؟ والى اي مدى يبدو الوضع في العراق انعكاسا للصراعات الإقليمية في المنطقة؟</p>\r\n\r\n\r\n<h4>Persian / Farsi</h4>\r\n<p>محمد البرادعی رئيس آژانس بين المللی انرژی اتمی پيشنهاد کرده است تهران برنامه جنجالی غنی سازی اورانيوم را متوقف کند و غرب نيز اجرای تحريم های تنبيهی مورد تائيد سازمان ملل متحد را به تعويق بياندازد.</p> \r\n\r\n\r\n\r\n<h4>Urdu</h4>\r\n<p>&#x62a;&#x645;&#x627;&#x645; &#x627;&#x646;&#x633;&#x627;&#x646; &#x622;&#x632;&#x627;&#x62f; &#x627;&#x648;&#x631; &#x62d;&#x642;&#x648;&#x642; &#x648; &#x639;&#x632;&#x62a; &#x6a9;&#x6d2; &#x627;&#x639;&#x62a;&#x628;&#x627;&#x631; &#x633;&#x6d2; &#x628;&#x631;&#x627;&#x628;&#x631; &#x67e;&#x6cc;&#x62f;&#x627; &#x6c1;&#x648;&#x6d3; &#x6c1;&#x6cc;&#x6ba;&#x6d4; &#x627;&#x646;&#x6c1;&#x6cc;&#x6ba; &#x636;&#x645;&#x6cc;&#x631; &#x627;&#x648;&#x631; &#x639;&#x642;&#x644; &#x648;&#x62f;&#x6cc;&#x639;&#x62a; &#x6c1;&#x648;&#x626;&#x6cc; &#x6c1;&#x6cc;&#x6d4; &#x627;&#x633;&#x644;&#x6d3; &#x627;&#x646;&#x6c1;&#x6cc;&#x6ba; &#x627;&#x6cc;&#x6a9; &#x62f;&#x648;&#x633;&#x631;&#x6d2; &#x6a9;&#x6d2; &#x633;&#x627;&#x62a;&#x6be; &#x628;&#x6be;&#x627;&#x626;&#x6cc; &#x686;&#x627;&#x631;&#x6d2; &#x6a9;&#x627; &#x633;&#x644;&#x648;&#x6a9; &#x6a9;&#x631;&#x646;&#x627; &#x686;&#x627;&#x6c1;&#x6cc;&#x6d3;&#x6d4;\r\n</p>\r\n\r\n<h4>Pashto (ps)</h4>\r\n<p>په کابل او کندهار کې دوو ځانمرگو بريدونو لږ تر لږه يو ماشوم وژلى او اته تنه نور ىې ټپيان کړي.\r\n</p>\r\n \r\n\r\n<h4>Sindhi (sd)</h4>\r\n<p>\r\n&#x648;&#x627;&#x634;&#x646;&#x6af;&#x67d;&#x646; (&#x645; &#x68a;) &#x622;&#x645;&#x631;&#x64a;&#x6aa;&#x627; &#x686;&#x64a;&#x648; &#x622;&#x647;&#x64a; &#x62a;&#x647; &#x6aa;&#x64a;&#x631;&#x64a; &#x644;&#x648;&#x6af;&#x631;&#x628;&#x644; &#x62a;&#x64a; &#x67e;&#x627;&#x6aa; &#x641;&#x648;&#x62c; &#x62c;&#x64a; &#x62a;&#x62d;&#x641;&#x638;&#x627;&#x62a; &#x633;&#x627;&#x646; &#x67e;&#x627;&#x6aa;&#x633;&#x62a;&#x627;&#x646; &#x6fe; &#x62c;&#x645;&#x647;&#x648;&#x631;&#x64a; &#x637;&#x648;&#x631; &#x622;&#x64a;&#x644; &#x632;&#x631;&#x62f;&#x627;&#x631;&#x64a; &#x62c;&#x64a; &#x62d;&#x6aa;&#x648;&#x645;&#x62a; &#x6a9;&#x64a; &#x6aa;&#x648;&#x628;&#x647; &#x62e;&#x637;&#x631;&#x648; &#x646;&#x627;&#x647;&#x64a;&#x60c; &#x627;&#x646; &#x633;&#x648;&#x627;&#x644; &#x62a;&#x64a; &#x62a;&#x64a; &#x6aa;&#x64a;&#x631;&#x64a; &#x644;&#x648;&#x6af;&#x631;&#x628;&#x644; &#x6fe; &#x67e;&#x627;&#x6aa;&#x633;&#x62a;&#x627;&#x646; &#x6a9;&#x64a; &#x63a;&#x64a;&#x631; &#x645;&#x634;&#x631;&#x648;&#x637; &#x627;&#x645;&#x62f;&#x627;&#x62f; &#x68f;&#x64a;&#x6bb; &#x62c;&#x64a; &#x6b3;&#x627;&#x644;&#x647;&#x647; &#x6aa;&#x626;&#x64a; &#x648;&#x626;&#x64a; &#x622;&#x647;&#x64a;&#x60c; &#x62c;&#x68f;&#x647;&#x646; &#x62a;&#x647; &#x641;&#x648;&#x62c;&#x64a; &#x627;&#x645;&#x62f;&#x627;&#x62f; &#x62a;&#x64a; &#x634;&#x631;&#x637; &#x644;&#x627;&#x6b3;&#x648; &#x6aa;&#x64a;&#x627; \r\n</p>\r\n\r\n</div>\r\n<!-- END RTL LANGUAGES -->\r\n\r\n<h3>Indic Scripts</h3>\r\n\r\n<h4>\r\nMalayalam\r\n</h4>\r\n<p>&#xd38;&#xd02;&#xd38;&#xd4d;&#xd25;&#xd3e;&#xd28;&#xd24;&#xd4d;&#xd24;&#xd4d; &#xd30;&#xd3e;&#xd37;&#xd4d;&#xd1f;&#xd4d;&#xd30;&#xd40;&#xd2f; &#xd2a;&#xd41;&#xd15;&#xd2e;&#xd31; &#xd38;&#xd43;&#xd37;&#xd4d;&#xd1f;&#xd3f;&#xd15;&#xd4d;&#xd15;&#xd3e;&#xd28;&#xd3e;&#xd23;&#xd4d; &#xd35;&#xd4b;&#xd1f;&#xd4d;&#xd1f;&#xd30;&#xd4d;&#x200d;&#xd2a;&#xd1f;&#xd4d;&#xd1f;&#xd3f;&#xd15; &#xd35;&#xd3f;&#xd35;&#xd3e;&#xd26;&#xd24;&#xd4d;&#xd24;&#xd3f;&#xd32;&#xd42;&#xd1f;&#xd46; &#xd15;&#xd4b;&#xd23;&#xd4d;&#x200d;&#xd17;&#xd4d;&#xd30;&#xd38;&#xd4d; &#xd36;&#xd4d;&#xd30;&#xd2e;&#xd3f;&#xd15;&#xd4d;&#xd15;&#xd41;&#xd28;&#xd4d;&#xd28;&#xd24;&#xd46;&#xd28;&#xd4d;&#xd28;&#xd4d; &#xd38;&#xd3f;&#xd2a;&#xd3f;&#x200c;&#xd0e;&#xd02; &#xd38;&#xd02;&#xd38;&#xd4d;&#xd25;&#xd3e;&#xd28; &#xd38;&#xd46;&#xd15;&#xd4d;&#xd30;&#xd1f;&#xd4d;&#xd1f;&#xd31;&#xd3f; &#xd2a;&#xd3f;&#xd23;&#xd31;&#xd3e;&#xd2f;&#xd3f; &#xd35;&#xd3f;&#xd1c;&#xd2f;&#xd28;&#xd4d;&#x200d; &#xd15;&#xd41;&#xd31;&#xd4d;&#xd31;&#xd2a;&#xd4d;&#xd2a;&#xd46;&#xd1f;&#xd41;&#xd24;&#xd4d;&#xd24;&#xd3f;. &#xd09;&#xd26;&#xd4d;&#xd2f;&#xd4b;&#xd17;&#xd38;&#xd4d;&#xd25;&#xd30;&#xd46; &#xd2d;&#xd40;&#xd37;&#xd23;&#xd3f;&#xd2a;&#xd4d;&#xd2a;&#xd46;&#xd1f;&#xd41;&#xd24;&#xd4d;&#xd24;&#xd3f; &#xd35;&#xd30;&#xd41;&#xd24;&#xd3f;&#xd2f;&#xd3f;&#xd32;&#xd4d;&#x200d; &#xd28;&#xd3f;&#xd30;&#xd4d;&#x200d;&#xd24;&#xd4d;&#xd24;&#xd3e;&#xd28;&#xd3e;&#xd23;&#xd4d; &#xd35;&#xd2f;&#xd32;&#xd3e;&#xd30;&#xd4d;&#x200d; &#xd30;&#xd35;&#xd3f; &#xd09;&#xd33;&#xd4d;&#x200d;&#xd2a;&#xd4d;&#xd2a;&#xd46;&#xd1f;&#xd46;&#xd2f;&#xd41;&#xd33;&#xd4d;&#xd33;&#xd35;&#xd30;&#xd4d;&#x200d; &#xd36;&#xd4d;&#xd30;&#xd2e;&#xd3f;&#xd15;&#xd4d;&#xd15;&#xd41;&#xd28;&#xd4d;&#xd28;&#xd24;&#xd46;&#xd28;&#xd4d;&#xd28;&#xd41;&#xd02; &#xd2a;&#xd3f;&#xd23;&#xd31;&#xd3e;&#x200d;&#xd2f;&#xd3f; &#xd2a;&#xd4d;&#xd30;&#xd38;&#xd4d;&#xd24;&#xd3e;&#xd35;&#xd28;&#xd2f;&#xd3f;&#xd32;&#xd4d;&#x200d; &#xd06;&#xd30;&#xd4b;&#xd2a;&#xd3f;&#xd1a;&#xd4d;&#xd1a;&#xd41;.\r\n</p>\r\n\r\n<h4>Kannada</h4>\r\n<p>\r\n&#xca4;&#xcae;&#xccd;&#xcae;&#xca6;&#xcc7; &#xc95;&#xcc1;&#xc9f;&#xcc1;&#xc82;&#xcac;&#xca6; &#xcaf;&#xcc1;&#xcb5;&#xca4;&#xcbf;&#xcaf;&#xcca;&#xcac;&#xccd;&#xcac;&#xcb3;&#xca8;&#xccd;&#xca8;&#xcc1; &#xcb8;&#xca4;&#xca4; &#xcb9;&#xcb2;&#xcb5;&#xcbe;&#xcb0;&#xcc1; &#xcb5;&#xcb0;&#xccd;&#xcb7; &#xcad;&#xccb;&#xc97;&#xcbf;&#xcb8;&#xcbf;&#xca6; &#xcad;&#xcbe;&#xcb0;&#xca4;&#xcc0;&#xcaf; &#xcae;&#xcc2;&#xcb2;&#xca6; &#xcae;&#xcc2;&#xcb5;&#xcb0;&#xcc1; &#xca6;&#xcc1;&#xcb0;&#xcc1;&#xcb3; &#xcb8;&#xc82;&#xcac;&#xc82;&#xca7;&#xcbf;&#xc95;&#xcb0;&#xcc1; &#xc85;&#xcaa;&#xcb0;&#xcbe;&#xca7;&#xcbf;&#xc97;&#xcb3;&#xcc6;&#xc82;&#xca6;&#xcc1; &#xcb8;&#xcbe;&#xcac;&#xcc0;&#xca4;&#xcbe;&#xc97;&#xcbf;&#xca6;&#xccd;&#xca6;&#xcc1;, &#xc87;&#xc82;&#xc97;&#xccd;&#xcb2;&#xcc6;&#xc82;&#xca1;&#xccd; &#xca8;&#xccd;&#xcaf;&#xcbe;&#xcaf;&#xcbe;&#xcb2;&#xcaf;&#xcb5;&#xcc1; &#xca6;&#xcc0;&#xcb0;&#xccd;&#xc98;&#xcbe;&#xcb5;&#xca7;&#xcbf; &#xc95;&#xca0;&#xcbf;&#xca3; &#xcb6;&#xcbf;&#xc95;&#xccd;&#xcb7;&#xcc6; &#xcb5;&#xcbf;&#xca7;&#xcbf;&#xcb8;&#xcbf;&#xca6;&#xcc6;.\r\n</p>\r\n\r\n<h4>Telegu</h4>\r\n<p>&#xc06;&#xc17;&#xc4d;&#xc28;&#xc47;&#xc2f; &#xc07;&#xc30;&#xc3e;&#xc28;&#xc4d;&#x200c;&#xc32;&#xc4b; &#xc06;&#xc26;&#xc3f;&#xc35;&#xc3e;&#xc30;&#xc02; &#xc28;&#xc3e;&#xc21;&#xc41; &#xc13; &#xc06;&#xc24;&#xc4d;&#xc2e;&#xc3e;&#xc39;&#xc41;&#xc24;&#xc3f; &#xc26;&#xc3e;&#xc21;&#xc3f; &#xc1c;&#xc30;&#xc17;&#xc21;&#xc02;&#xc24;&#xc4b; &#xc07;&#xc30;&#xc35;&#xc48; &#xc2e;&#xc02;&#xc26;&#xc3f; &#xc2e;&#xc43;&#xc24;&#xc3f; &#xc1a;&#xc46;&#xc02;&#xc26;&#xc3e;&#xc30;&#xc41;.\r\n<br />\r\n\r\n&#xc06;&#xc17;&#xc4d;&#xc28;&#xc47;&#xc2f; &#xc07;&#xc30;&#xc3e;&#xc28;&#xc4d;&#x200c;&#xc32;&#xc4b; &#xc06;&#xc24;&#xc4d;&#xc2e;&#xc3e;&#xc39;&#xc41;&#xc24;&#xc3f; &#xc26;&#xc3e;&#xc21;&#xc3f; &#xc1c;&#xc30;&#xc17;&#xc21;&#xc02;&#xc24;&#xc4b; &#xc10;&#xc26;&#xc41;&#xc17;&#xc41;&#xc30;&#xc41; &#xc0e;&#xc32;&#xc3f;&#xc1f;&#xc4d; &#xc30;&#xc46;&#xc35;&#xc32;&#xc4d;&#xc2f;&#xc42;&#xc37;&#xc28;&#xc30;&#xc40; &#xc17;&#xc3e;&#xc30;&#xc4d;&#xc21;&#xc4d;&#x200c;&#xc32;&#xc24;&#xc4b; &#xc38;&#xc39;&#xc3e; &#xc2a;&#xc4d;&#xc30;&#xc2e;&#xc41;&#xc16; &#xc15;&#xc2e;&#xc3e;&#xc02;&#xc21;&#xc30;&#xc4d;&#x200c;&#xc32;&#xc24;&#xc4b;&#xc38;&#xc39;&#xc3e; &#xc2e;&#xc4a;&#xc24;&#xc4d;&#xc24;&#xc02; &#xc07;&#xc30;&#xc35;&#xc48; &#xc2e;&#xc02;&#xc26;&#xc3f; &#xc2e;&#xc43;&#xc24;&#xc3f; &#xc1a;&#xc46;&#xc02;&#xc26;&#xc3f;&#xc28;&#xc1f;&#xc4d;&#xc32;&#xc41; &#xc07;&#xc30;&#xc3e;&#xc28;&#xc4d; &#xc32;&#xc4b;&#xc15;&#xc4d;&#x200c;&#xc38;&#xc2d; &#xc38;&#xc4d;&#xc2a;&#xc40;&#xc15;&#xc30;&#xc4d; &#xc05;&#xc32;&#xc40; &#xc32;&#xc3e;&#xc30;&#xc3f;&#xc1c;&#xc3e;&#xc28;&#xc40; &#xc24;&#xc46;&#xc32;&#xc3f;&#xc2a;&#xc3e;&#xc30;&#xc41;.\r\n</p>\r\n\r\n\r\n\r\n<h4>Tamil (ta)</h4>\r\n<p>இராக்கிய மக்கள் அவநம்பிக்கையுடன் இருப்பதாகவும், ஷியா மற்றும் சுனிக்கள் முரண்பட்ட கருத்துக்களுடன் துருவப்பட்ட நிலையில் இருப்பதாகவும் கருத்துக் கணிப்பு ஒன்று கூறுகிறது.</p>\r\n\r\n\r\n<h4>Oriya</h4>\r\n<p>&#xb13;&#xb21;&#xb3c;&#xb3f;&#xb06; &#xb09;&#xb07;&#xb15;&#xb3f;&#xb2a;&#xb47;&#xb21;&#xb3f;&#xb06; &#xb06;&#xb2a;&#xb23;&#xb19;&#xb4d;&#xb15;&#xb41; &#xb38;&#xb4d;&#xb2c;&#xb3e;&#xb17;&#xb24; &#xb15;&#xb30;&#xb41;&#xb1b;&#xb3f;&#x964; &#xb0f;&#xb39;&#xb3f; &#xb09;&#xb28;&#xb4d;&#xb2e;&#xb41;&#xb15;&#xb4d;&#xb24; &#xb1c;&#xb4d;&#xb1e;&#xb3e;&#xb28;&#xb15;&#xb4b;&#xb37;&#xb1f;&#xb3f; &#xb07;&#xb23;&#xb4d;&#xb1f;&#xb30;&#xb28;&#xb47;&#xb1f; &#xb09;&#xb2a;&#xb30;&#xb47; &#xb06;&#xb27;&#xb3e;&#xb30;&#xb3f;&#xb24; &#xb0f;&#xb2c;&#xb02; &#xb0f;&#xb39;&#xb3e; &#xb2c;&#xb3f;&#xb36;&#xb4d;&#xb2c;&#xb30; &#xb6b;&#xb66;&#xb1f;&#xb3f; &#xb2d;&#xb3e;&#xb37;&#xb3e;&#xb30;&#xb47; &#xb09;&#xb2a;&#xb32;&#xb2c;&#xb4d;&#xb27; &#x964; &#xb0f;&#xb39;&#xb3e;&#xb15;&#xb41; &#xb06;&#xb2a;&#xb23; &#xb2e;&#xb27;&#xb4d;&#xb5f; &#xb2c;&#xb30;&#xb4d;&#xb26;&#xb4d;&#xb27;&#xb3f;&#xb24; &#xb13; &#xb2a;&#xb30;&#xb3f;&#xb2c;&#xb30;&#xb4d;&#xb24;&#xb3f;&#xb24; &#xb15;&#xb30;&#xb3f;&#xb2a;&#xb3e;&#xb30;&#xb3f;&#xb2c;&#xb47; &#xb0f;&#xb2c;&#xb02; &#xb0f;&#xb39;&#xb3e;&#xb15;&#xb41; &#xb09;&#xb28;&#xb4d;&#xb28;&#xb24; &#xb15;&#xb30;&#xb3f;&#xb2c;&#xb3e; &#xb2a;&#xb3e;&#xb07;&#xb01; &#xb28;&#xb3f;&#xb1c;&#xb30; &#xb05;&#xb2c;&#xb26;&#xb3e;&#xb28; &#xb26;&#xb47;&#xb07; &#xb2a;&#xb3e;&#xb30;&#xb3f;&#xb2c;&#xb47; &#x964; &#xb06;&#xb2a;&#xb23;&#xb19;&#xb4d;&#xb15; &#xb2a;&#xb38;&#xb28;&#xb4d;&#xb26;&#xb30; &#xb2c;&#xb3f;&#xb37;&#xb5f; &#xb17;&#xb41;&#xb21;&#xb3f;&#xb15;&#xb41; &#xb06;&#xb2a;&#xb23; &#xb28;&#xb42;&#xb24;&#xb28; &#xb2d;&#xb3e;&#xb2c;&#xb47;&#xb30;&#xb47; &#xb2f;&#xb4b;&#xb17; &#xb15;&#xb30;&#xb3f;&#xb2a;&#xb3e;&#xb30;&#xb3f;&#xb2c;&#xb47; &#xb15;&#xb3f;&#xb2e;&#xb4d;&#xb2c;&#xb3e; &#xb0f;&#xb39;&#xb3f; &#xb2a;&#xb43;&#xb37;&#xb4d;&#xb20;&#xb3e;&#xb15;&#xb41; &#xb38;&#xb2e;&#xb4d;&#xb2a;&#xb3e;&#xb26;&#xb28; &#xb15;&#xb30;&#xb3f; &#xb0f;&#xb39;&#xb3e; &#xb38;&#xb39;&#xb3f;&#xb24; &#xb2f;&#xb4b;&#xb17; &#xb15;&#xb30;&#xb3f;&#xb2a;&#xb3e;&#xb30;&#xb3f;&#xb2c; &#x964; &#xb38;&#xb2e;&#xb38;&#xb4d;&#xb24; &#xb2a;&#xb3e;&#xb20; &#xb17;&#xb41;&#xb21;&#xb3f;&#xb15; GNU &#xb2e;&#xb41;&#xb15;&#xb4d;&#xb24; &#xb26;&#xb32;&#xb3f;&#xb32;&#xb15;&#xb30;&#xb23; &#xb32;&#xb3e;&#xb07;&#xb38;&#xb47;&#xb28;&#xb4d;&#xb38;&#xb30; &#xb38;&#xb30;&#xb4d;&#xb24;&#xb4d;&#xb24; &#xb05;&#xb27;&#xb40;&#xb28;&#xb30;&#xb47; &#xb09;&#xb2a;&#xb32;&#xb2c;&#xb4d;&#xb27; &#x964; &#xb24;&#xb25;&#xb3e;&#xb2a;&#xb3f;, &#xb06;&#xb2a;&#xb23; &#xb0f;&#xb39;&#xb3e;&#xb15;&#xb41; &#xb2e;&#xb41;&#xb15;&#xb4d;&#xb24; &#xb2d;&#xb3e;&#xb2c;&#xb47;&#xb30; &#xb07;&#xb32;&#xb47;&#xb15;&#xb4d;&#xb1f;&#xb4d;&#xb30;&#xb4b;&#xb28;&#xb3f;&#xb15;&#xb4d;&#xb38; &#xb2a;&#xb4d;&#xb30;&#xb3f;&#xb23;&#xb4d;&#xb1f;&#xb4d; &#xb15;&#xb3f;&#xb2e;&#xb4d;&#xb2c;&#xb3e; &#xb05;&#xb28;&#xb4d;&#xb5f;&#xb3e;&#xb28;&#xb4d;&#xb5f; &#xb2a;&#xb4d;&#xb30;&#xb3f;&#xb23;&#xb4d;&#xb1f;&#xb30; &#xb2e;&#xb3e;&#xb27;&#xb4d;&#xb5f;&#xb2e;&#xb30;&#xb47; &#xb2c;&#xb4d;&#xb5f;&#xb2c;&#xb39;&#xb3e;&#xb30; &#xb15;&#xb30;&#xb3f;&#xb2a;&#xb3e;&#xb30;&#xb3f;&#xb2c; &#x964;\r\n</p>\r\n\r\n<h4>Punjabi</h4>\r\n<p>&#xa15;&#xa47;&#xa02;&#xa26;&#xa30;&#xa40; &#xa17;&#xa4d;&#xa30;&#xa39;&#xa3f;&#xa2e;&#xa70;&#xa24;&#xa30;&#xa40; &#xa2a;&#xa40;.&#xa1a;&#xa3f;&#xa26;&#xa70;&#xa2c;&#xa30;&#xa2e; &#xa28;&#xa47; &#xa10;&#xa24;&#xa35;&#xa3e;&#xa30; &#xa28;&#xa42;&#xa70; &#xa24;&#xa2e;&#xa3f;&#xa32;&#xa28;&#xa3e;&#xa22;&#xa42; &#xa26;&#xa47; &#xa2e;&#xa41;&#xa71;&#xa16;&#xa2e;&#xa70;&#xa24;&#xa30;&#xa40; &#xa10;&#xa2e;.&#xa15;&#xa30;&#xa41;&#xa23;&#xa3e;&#xa28;&#xa3f;&#xa27;&#xa40; &#xa28;&#xa3e;&#xa32; &#xa2e;&#xa41;&#xa32;&#xa3e;&#xa15;&#xa3e;&#xa24; &#xa15;&#xa40;&#xa24;&#xa40;&#x964;&#xa09;&#xa28;&#xa4d;&#xa39;&#xa3e; &#xa28;&#xa47; &#xa36;&#xa4d;&#xa30;&#xa40;&#xa32;&#xa70;&#xa15;&#xa3e; '&#xa1a; &#xa32;&#xa3f;&#xa71;&#xa1f;&#xa47; &#xa26;&#xa47; &#xa16;&#xa3f;&#xa32;&#xa3e;&#xa5e; &#xa2f;&#xa41;&#xa71;&#xa27; &#xa26;&#xa4c;&#xa30;&#xa3e;&#xa28; &#xa09;&#xa71;&#xa1d;&#xa5c;&#xa47; &#xa39;&#xa4b;&#xa0f; &#xa32;&#xa71;&#xa17;&#xa2d;&#xa17; &#xa22;&#xa3e;&#xa08; &#xa32;&#xa71;&#xa16; &#xa24;&#xa2e;&#xa3f;&#xa32;&#xa3e;&#xa02; &#xa26;&#xa40; &#xa2e;&#xa41;&#xa5c; &#xa30;&#xa3f;&#xa39;&#xa3e;&#xa07;&#xa36; '&#xa24;&#xa47; &#xa1a;&#xa30;&#xa1a;&#xa3e; &#xa15;&#xa40;&#xa24;&#xa40;&#x964;\r\n</p>\r\n\r\n<h4>Gujarati (gu)</h4>\r\n<p>\r\n&#xa86; &#xab5;&#xabe;&#xaa4; &#xab9;&#xa9c;&#xabe;&#xab0; &#xab5;&#xabe;&#xab0; &#xa95;&#xab9;&#xac7;&#xab5;&#xabe;&#xaae;&#xabe;&#xa82; &#xa86;&#xab5;&#xac0; &#xa9b;&#xac7; &#xa95;&#xac7; &#xaab;&#xabf;&#xab2;&#xacd;&#xaae; &#xaac;&#xaa8;&#xabe;&#xab5;&#xaa4;&#xac0; &#xab5;&#xa96;&#xac7;&#xaa4; &#xab9;&#xa82;&#xaae;&#xac7;&#xab6;&#xabe; &#xab8;&#xacc;&#xaa5;&#xac0; &#xab5;&#xaa7;&#xac1; &#xaa7;&#xacd;&#xaaf;&#xabe;&#xaa8; &#xab5;&#xabe;&#xab0;&#xacd;&#xaa4;&#xabe; &#xa85;&#xaa8;&#xac7; &#xab8;&#xacd;&#xa95;&#xacd;&#xab0;&#xac0;&#xaa8;&#xaaa;&#xacd;&#xab2;&#xac7; &#xaaa;&#xab0; &#xa86;&#xaaa;&#xab5;&#xac1; &#xa9c;&#xacb;&#xa88;&#xa8f;. &#xa95;&#xabe;&#xab0;&#xaa3; &#xa95;&#xac7; &#xa86; &#xa95;&#xacb;&#xa88; &#xaaa;&#xaa3; &#xaab;&#xabf;&#xab2;&#xacd;&#xaae;&#xaa8;&#xac0; &#xab8;&#xaab;&#xab3;&#xaa4;&#xabe;&#xaa8;&#xacb; &#xaae;&#xac1;&#xa96;&#xacd;&#xaaf; &#xa86;&#xaa7;&#xabe;&#xab0; &#xab9;&#xacb;&#xaaf; &#xa9b;&#xac7;.\r\n<br />\r\n&#xaae;&#xacb;&#xa9f;&#xabe; &#xaab;&#xabf;&#xab2;&#xacd;&#xaae; &#xab8;&#xacd;&#xa9f;&#xabe;&#xab0;&#xacd;&#xab8; &#xab8;&#xabe;&#xa88;&#xaa8; &#xa95;&#xab0;&#xab5;&#xabe;&#xaa5;&#xac0;, &#xab8;&#xacd;&#xa9f;&#xa82;&#xa9f; &#xa85;&#xaa8;&#xac7; &#xa97;&#xac0;&#xaa4;&#xacb;&#xaa5;&#xac0; &#xaaa;&#xabe;&#xaa3;&#xac0;&#xaa8;&#xac0; &#xa85;&#xa82;&#xaa6;&#xab0; &#xa95;&#xac7; &#xa86;&#xa95;&#xabe;&#xab6;&#xaae;&#xabe;&#xa82; &#xa95;&#xab0;&#xacb;&#xaa1;&#xacb; &#xab0;&#xac2;&#xaaa;&#xabf;&#xaaf;&#xabe; &#xa96;&#xab0;&#xacd;&#xa9a; &#xa95;&#xab0;&#xac0; &#xaab;&#xabf;&#xab2;&#xacd;&#xaae;&#xabe;&#xab5;&#xac7;&#xab2;&#xabe; &#xaa6;&#xacd;&#xab0;&#xab6;&#xacd;&#xaaf;&#xacb;&#xaa5;&#xac0; &#xa95;&#xab6;&#xac1; &#xa9c; &#xaa8;&#xaa5;&#xac0; &#xaa5;&#xaa4;&#xac1;. &#xaaa;&#xab0;&#xa82;&#xaa4;&#xac1; &#xa86; &#xaac;&#xac1;&#xaa8;&#xabf;&#xaaf;&#xabe;&#xaa6;&#xac0; &#xab5;&#xabe;&#xaa4; &#xa85;&#xaa4;&#xacd;&#xaaf;&#xabe;&#xab0; &#xab8;&#xac1;&#xaa7;&#xac0; &#xa95;&#xacb;&#xa88; &#xab2;&#xacb;&#xa95;&#xacb;&#xaa8;&#xac7; &#xab8;&#xaae;&#xa9c;&#xabe;&#xaa4;&#xac0; &#xaa8;&#xaa5;&#xac0;.\r\n</p>\r\n\r\n\r\n<h4>Hindi (hi)</h4>\r\n<p>भारत और बरमूडा के बीच बारिश के कारण रुका मैच दोबारा शुरु हो गया है. भारत ने बरमूडा के सामने रिकॉर्ड 414 रनों का लक्ष्य रखा है. बरमूडा ने दो विकेट खो दिए हैं.</p>\r\n\r\n\r\n<h4>Nepali (ne) - Devanagari</h4>\r\n<p>अन्तरिम सरकारको गठनमा ढीलाइ हुनुका साथै आउंदो जेठ महिनाभित्र संविधानसभाको चुनाव होला कि नहोला भन्ने बहस चर्कीरहेको बेला चुनावकै विषयमा निर्वाचन आयोग र आठ दलको बेग्ला, बेग्लै भनाइ रहेको देखिएको छ।</p>\r\n\r\n\r\n<h4>Bengali (bn)</h4>\r\n<p>\r\n&#x9a6;&#x995;&#x9cd;&#x9b7;&#x9bf;&#x9a3; &#x993;&#x9df;&#x9be;&#x99c;&#x9bf;&#x9b0;&#x9bf;&#x9b8;&#x9cd;&#x9a5;&#x9be;&#x9a8;&#x9c7; &#x995;&#x9b0;&#x9cd;&#x9ae;&#x9b0;&#x9a4; &#x9b8;&#x9cd;&#x9ac;&#x9c7;&#x99a;&#x9cd;&#x99b;&#x9be;&#x9b8;&#x9c7;&#x9ac;&#x9c0; &#x993; &#x9a4;&#x9cd;&#x9b0;&#x9be;&#x9a3; &#x9b8;&#x982;&#x9b8;&#x9cd;&#x9a5;&#x9be;&#x997;&#x9c1;&#x9b2;&#x9cb; &#x9a7;&#x9be;&#x9b0;&#x9a3;&#x9be; &#x995;&#x9b0;&#x99b;&#x9c7; &#x9b8;&#x9c7;&#x9a8;&#x9be; &#x985;&#x9ad;&#x9bf;&#x9af;&#x9be;&#x9a8;&#x9c7;&#x9b0; &#x9a4;&#x9c0;&#x9ac;&#x9cd;&#x9b0;&#x9a4;&#x9be; &#x9ac;&#x9be;&#x9dc;&#x9b2;&#x9c7; &#x98f;&#x987; &#x9b8;&#x982;&#x996;&#x9cd;&#x9af;&#x9be;&#x99f;&#x9be; &#x986;&#x9b0;&#x993; &#x985;&#x9a8;&#x9c7;&#x995; &#x9ac;&#x9c7;&#x9dc;&#x9c7; &#x9af;&#x9be;&#x9ac;&#x9c7;\r\n<br />\r\n&#x9b6;&#x9b0;&#x9a3;&#x9be;&#x9b0;&#x9cd;&#x9a5;&#x9c0;&#x9a6;&#x9c7;&#x9b0; &#x9b8;&#x9cd;&#x9b0;&#x9cb;&#x9a4; &#x9b8;&#x9be;&#x9ae;&#x9b2;&#x9be;&#x9a4;&#x9c7; &#x9a4;&#x9be;&#x9b0;&#x9be; &#x987;&#x9a4;&#x9bf;&#x9ae;&#x9a7;&#x9cd;&#x9af;&#x9c7;&#x987; &#x9b9;&#x9bf;&#x9ae;&#x9b6;&#x9bf;&#x9ae; &#x996;&#x9be;&#x99a;&#x9cd;&#x99b;&#x9c7;&#x9a8;, &#x9ab;&#x9b2;&#x9c7; &#x9b2;&#x9dc;&#x9be;&#x987; &#x9a5;&#x9c7;&#x995;&#x9c7; &#x9aa;&#x9be;&#x9b2;&#x9bf;&#x9df;&#x9c7; &#x986;&#x9b8;&#x9be; &#x9ac;&#x9c7;&#x9b8;&#x9be;&#x9ae;&#x9b0;&#x9bf;&#x995; &#x9ae;&#x9be;&#x9a8;&#x9c1;&#x9b7;&#x99c;&#x9a8;&#x9c7;&#x9b0; &#x9b8;&#x982;&#x996;&#x9cd;&#x9af;&#x9be; &#x986;&#x9b0;&#x993; &#x9ac;&#x9be;&#x9dc;&#x9b2;&#x9c7; &#x9b8;&#x9cd;&#x9ac;&#x9ad;&#x9be;&#x9ac;&#x9a4;&#x987; &#x9b8;&#x999;&#x9cd;&#x995;&#x99f; &#x986;&#x9b0;&#x993; &#x99c;&#x99f;&#x9bf;&#x9b2; &#x9b9;&#x9df;&#x9c7; &#x989;&#x9a0;&#x9ac;&#x9c7;\r\n</p>\r\n\r\n\r\n<h4>Assamese</h4>\r\n<p>&#x985;&#x9b8;&#x9ae;&#x9c0;&#x9af;&#x9bc;&#x9be; &#x9f1;&#x9bf;&#x995;&#x9bf;&#x9aa;&#x9bf;&#x9a1;&#x9bf;&#x9af;&#x9bc;&#x9be;&#x9f0; &#x989;&#x9a6;&#x9cd;&#x9a6;&#x9c7;&#x9b6;&#x9cd;&#x9af; &#x9b9;'&#x9b2; &#x9b8;&#x9ae;&#x9cd;&#x9aa;&#x9c2;&#x9f0;&#x9cd;&#x9a3; &#x985;&#x9b8;&#x9ae;&#x9c0;&#x9af;&#x9bc;&#x9be; &#x9ad;&#x9be;&#x9b7;&#x9be;&#x9a4; &#x98f;&#x996;&#x9a8;&#x9bf; &#x9ac;&#x9bf;&#x9b6;&#x9cd;&#x9ac;&#x995;&#x9cb;&#x9b7; &#x9aa;&#x9cd;&#x9f0;&#x9a3;&#x9af;&#x9bc;&#x9a8; &#x995;&#x9f0;&#x9be;&#x964; &#x985;&#x9a8;&#x9cd;&#x9af; &#x995;&#x9cb;&#x9a8;&#x9cb; &#x9ad;&#x9be;&#x9b7;&#x9be;&#x9f0; &#x9aa;&#x9cd;&#x9f0;&#x9ac;&#x9a8;&#x9cd;&#x9a7; &#x98f;&#x987; &#x9ac;&#x9bf;&#x9b6;&#x9cd;&#x9ac;&#x995;&#x9cb;&#x9b7;&#x9f0; &#x9ac;&#x9be;&#x9ac;&#x9c7; &#x997;&#x9cd;&#x9f0;&#x9b9;&#x9a8; &#x995;&#x9f0;&#x9be; &#x9a8;&#x9b9;'&#x9ac;&#x964; &#x9ac;&#x9bf;&#x9b6;&#x9cd;&#x9ac;&#x995;&#x9cb;&#x9b7;&#x9f0; &#x985;&#x9f1;&#x9a6;&#x9be;&#x9a8;&#x995;&#x9be;&#x9f0;&#x9c0;&#x9b8;&#x995;&#x9b2;&#x9b2;&#x9c8; &#x9b8;&#x9be;&#x9a6;&#x9f0;&#x9c7;&#x9f0;&#x9c7; &#x985;&#x9a8;&#x9c1;&#x9f0;&#x9cb;&#x9a7; &#x99c;&#x9a8;&#x9cb;&#x9f1;&#x9be; &#x9b9;'&#x9b2; &#x9af;&#x9be;&#x9a4;&#x9c7; &#x9a4;&#x9c7;&#x996;&#x9c7;&#x9a4;&#x9b8;&#x995;&#x9b2;&#x9c7; &#x985;&#x9b8;&#x9ae;&#x9c0;&#x9af;&#x9bc;&#x9be; &#x9ad;&#x9be;&#x9b7;&#x9be;&#x9f0; &#x9aa;&#x9cd;&#x9f0;&#x99a;&#x9b2;&#x9bf;&#x9a4; &#x9ac;&#x9be;&#x9a8;&#x9be;&#x9a8; &#x9aa;&#x9a6;&#x9cd;&#x9a7;&#x9a4;&#x9bf; &#x9ae;&#x9be;&#x9a8;&#x9bf; &#x99a;&#x9b2;&#x9c7;&#x964; &#x9ac;&#x9bf;&#x9a6;&#x9c7;&#x9b6;&#x9c0; &#x9b6;&#x9ac;&#x9cd;&#x9a6;&#x9f0; &#x985;&#x9b8;&#x9ae;&#x9c0;&#x9af;&#x9bc;&#x9be; &#x9aa;&#x9cd;&#x9f0;&#x9a4;&#x9bf;&#x9f0;&#x9c2;&#x9aa;&#x9f0; &#x995;&#x9cd;&#x9b7;&#x9c7;&#x9a4;&#x9cd;&#x9f0;&#x9a4; &#x9af;&#x9bf;&#x9b9;&#x9c7;&#x9a4;&#x9c1; &#x985;&#x9b8;&#x9ae;&#x9c0;&#x9af;&#x9bc;&#x9be; &#x9b8;&#x9be;&#x9b9;&#x9bf;&#x9a4;&#x9cd;&#x9af;&#x9bf;&#x995;&#x9b8;&#x995;&#x9b2; &#x98f;&#x9a4;&#x9bf;&#x9af;&#x9bc;&#x9be;&#x993; &#x990;&#x995;&#x9cd;&#x9af;&#x9ae;&#x9a4;&#x9a4; &#x989;&#x9aa;&#x9a8;&#x9c0;&#x9a4; &#x9b9;'&#x9ac; &#x9aa;&#x9f0;&#x9be; &#x9a8;&#x9be;&#x987;, &#x9f1;&#x9bf;&#x995;&#x9bf;&#x9aa;&#x9bf;&#x9a1;&#x9bf;&#x9af;&#x9bc;&#x9be;&#x9a4; &#x9ac;&#x9bf;&#x9a6;&#x9c7;&#x9b6;&#x9c0; &#x9b6;&#x9ac;&#x9cd;&#x9a6;&#x9f0; &#x9af;&#x9bf;&#x995;&#x9cb;&#x9a8;&#x9cb; &#x9a7;&#x9f0;&#x9a8;&#x9f0; &#x985;&#x9b8;&#x9ae;&#x9c0;&#x9af;&#x9bc;&#x9be; &#x9f0;&#x9c2;&#x9aa; &#x997;&#x9cd;&#x9f0;&#x9be;&#x9b9;&#x9cd;&#x9af; &#x995;&#x9f0;&#x9be; &#x9b9;'&#x9ac;&#x964;\r\n</p>\r\n\r\n\r\n\r\n\r\n<h4>Japanese (pangrams)</h4>\r\n<h5>Iroha Uta SJIS</h5>\r\n\r\n<p>いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす </p>\r\n\r\n<h5>Tori Naku Uta </h5>\r\n\r\n<p>とりなくこゑす ゆめさませ みよあけわたる ひんかしを そらいろはえて おきつへに ほふねむれゐぬ もやのうち </p>\r\n\r\n<h5>Ametsuchi No Uta </h5>\r\n\r\n<p>あめ つち ほし そら / やま かは みね たに / くも きり むろ こけ / ひと いぬ うへ すゑ / ゆわ さる おふ せよ / えのえ*を なれ ゐて </p>\r\n\r\n<h5>Taini no Uta </h5>\r\n\r\n<p>たゐにいて なつむわれをそ きみめすと あさりおひゆく やましろの うちゑへるこら もはほせよ えふねかけぬ </p>\r\n\r\n<h4>Chinese (simplified) GB2312 GB</h4>\r\n\r\n<p>来自商务部新闻办公室的消息称,中方免除与中国有外交关系的所有非洲重债穷国及最不发达国家截至2005年底对华到期政府无息贷款债务。有关部门已对相关债务进行全面清理核对,对与中国有外交关系的33个非洲重债穷国和最不发达国家,免除其截至2005年底168笔对华到期无息贷款债务。拟于2007年底前与受援国办理完免债协议。</p>\r\n\r\n\r\n<h4>Chinese (Traditional - Hong Kong) Big5</h4>\r\n\r\n<p>「憂鬱小王子」是一個教育網站,它成功結合了香港賽馬會防止自殺研究中心各方面的專才,為青少年人提供精神健康的訊息,對普及抑鬱症知識的貢獻良多。在香港,它曾獲選為「2004年十大健康網站」之一,該項選舉自2005年起改名現時的「優秀網站選舉」。其貢獻在國際間亦備受肯定,2005年,該網站榮獲第八屆「亞洲創新大獎」銀獎。</p>\r\n\r\n\r\n\r\n<h4>Korean UHC</h4>\r\n\r\n<p>키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다. </p>\r\n\r\n\r\n<h4>Mixed</h4>\r\n<p style=\"font-family: 'trebuchet ms';\">Distinguishes multiple languages enclosed in same element (tags): Arabic قال الرئيس \r\nEnglish Cat sat on the large mat \r\nTamil ஷியா \r\nHindi भारत और \r\nJapanese いろはにほへと  \r\nChinese 来自商务部新闻办公\r\nThai เป็นมนุษย\r\nViet Một khảo sát mới cho biết người dân \r\nTamil ஷியா \r\nChinese 来自商务部新闻办公\r\nEnglish Cat sat on the large mat \r\n</p>\r\n\r\n\r\n<h4>Unicode Plane 2</h4>\r\n<div>\r\nUnicode Plane 0 (BMP U+0000 - U+FFFF): \r\n鼂 鼈 鼗 鼦 鼧 鼹 齄 齅 齐 齓 齚 齢 齩 齿 龎 龙 龟 龥 \r\n-------\r\nUnicode Plane 2 (SIP characters > U+20000):\r\n𠀡 𠀾 𠁆 𠁎 𠁨 𠂆 𠂇 𠂊 𠂔 𠃊 𠃋 𠃌 𠃍 𠃑 𠃮 𠄌 𠄎 𠄘 𠆤 𠆩 𠆫 𠇁 𠇔 𠇲 𠈄 𠈌 𠈔 𠈹 𠉛 𠉴 𠉵 𠊙 𠊞 𠊠 𠊷 𠊿 𠋀 𠋥 𠌊 \r\n-------\r\nUnicode Plane 0 (BMPU+0000 - U+FFFF): \r\n鼂 鼈 鼗 鼦 鼧 鼹 齄 齅 齐 齓 齚 齢 齩 齿 龎 龙 龟 龥 <br />\r\n</div>\r\n\r\n\r\n";
//==============================================================
//==============================================================
//==============================================================
include "../mpdf.php";
$mpdf = new mPDF();
$mpdf->useAdobeCJK = true;
// Default setting in config.php
// You can set this to false if you have defined other CJK fonts
$mpdf->SetAutoFont(AUTOFONT_ALL);
//	AUTOFONT_CJK | AUTOFONT_THAIVIET | AUTOFONT_RTL | AUTOFONT_INDIC	// AUTOFONT_ALL
// () = default ALL, 0 turns OFF (default initially)
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
//==============================================================
//==============================================================
//==============================================================
Ejemplo n.º 25
0
    $xx13 = "4";
} else {
    $xx13 = "";
}
if ($xx13 != "") {
    $xx14 = $xx11 . "_" . $xx10;
    $xx15 = new PDFContent($xx13, $xx11, $xx12, $_REQUEST["language"]);
    $xx16 = $xx15->getContent();
    $xx17 = $xx15->getSettings();
    $xx18 = $xx1d($xx16["header"], ENT_COMPAT, "utf-8");
    $xx19 = $xx1d($xx16["body"], ENT_COMPAT, "utf-8");
    $xx1a = $xx1d($xx16["footer"], ENT_COMPAT, "utf-8");
    if ($xx17["orientation"] == "landscape") {
        $xx1b = $xx17["format"] . "-L";
    } else {
        $xx1b = $xx17["format"];
    }
    if (!isset($xx1c)) {
        $xx1c = new mPDF('', $xx1b, '', 'Arial', $xx17["margin_left"], $xx17["margin_right"], 0, 0, $xx17["margin_top"], $xx17["margin_bottom"]);
        $xx1c->SetAutoFont();
        @$xx1c->SetHTMLHeader($xx18);
    } else {
        @$xx1c->SetHTMLHeader($xx18);
        @$xx1c->WriteHTML('<pagebreak sheet-size="' . $xx1b . '" margin-left="' . $xx17["margin_left"] . 'mm" margin-right="' . $xx17["margin_right"] . 'mm" margin-top="0mm" margin-bottom="0mm" margin-header="' . $xx17["margin_top"] . 'mm" margin-footer="' . $xx17["margin_bottom"] . 'mm" />');
    }
    @$xx1c->SetHTMLFooter($xx1a);
    @$xx1c->WriteHTML($xx19);
    $xx1c->Output('storage/' . $xx14 . '.pdf');
}
echo "<script>window.history.back();</script>";
exit;
Ejemplo n.º 26
0
<?php
header('Content-type: application/pdf');
//==============================================================
include("mpdf.php");
$mpdf=new mPDF();
$mpdf->useAdobeCJK = true; // Default setting in config.php
// You can set this to false if you have defined other CJK fonts
$mpdf->SetAutoFont(AUTOFONT_ALL); // AUTOFONT_CJK | AUTOFONT_THAIVIET | AUTOFONT_RTL |
// () = default ALL, 0 turns OFF (default initially)
$html = "<table border=0>
 <tr>
 	<td>Hello</td>
	<td>Hi</td>
 </tr>
</table>
";
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
//==============================================================
?>
Ejemplo n.º 27
0
                                        
                                    </tbody>
                                </table>
                        </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>

</body>

</html>
<?php 
$html = ob_get_contents();
ob_end_clean();
$pdf = new mPDF();
$pdf->SetAutoFont();
$pdf->SetDisplayMode('fullpage');
$pdf->WriteHTML($html);
$pdf->Output();
?>
  
Ejemplo n.º 28
0
 private function createPDFFileForScheduler($report_html, $report_html_headerInfo = "", $set_pdf_portrait = false)
 {
     global $log;
     $log->debug("Entering ./modules/ITS4YouReports/GenerateObj.php::createPDFFileForScheduler");
     global $log;
     $log->debug("Entering ./modules/ITS4YouReports/GenerateObj.php::createPDFFileForScheduler");
     global $log;
     $log->debug("Entering ./modules/ITS4YouReports/GenerateObj.php::createPDFFileForScheduler");
     global $log;
     $log->debug("Entering ./modules/ITS4YouReports/GenerateObj.php::createPDFFileForScheduler");
     if (vtlib_isModuleActive("PDFMaker") === true && file_exists('modules/PDFMaker/resources/mpdf/mpdf.php')) {
         $this->checkInstallationMemmoryLimit();
         if (file_exists("modules/ITS4YouReports/classes/Reports4YouDefault.css")) {
             $report_html_style = file_get_contents("modules/ITS4YouReports/classes/Reports4YouDefault.css");
         }
         $report_pdf = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n                        <html>\n                          <head>\n                          <meta http-equiv='content-type' content='text/html; charset=utf-8'>\n                            {$report_html_style}\n                          </head>\n                          <body>\n                            <div>" . str_replace("<@ReportHeaderInfo@>", "", $report_html) . "</div>\n                          </body>\n                        </html>";
         $report_html = str_replace("<@ReportHeaderInfo@>", $report_html_headerInfo, $report_html);
         require_once 'modules/PDFMaker/resources/mpdf/mpdf.php';
         //                     $mpdf = new mPDF('', // mode - default ''
         //                      2	 '', // format - A4, for example, default ''
         //                      3	 0, // font size - default 0
         //                      4	 '', // default font family
         //                      5	 15, // margin_left
         //                      6	 15, // margin right
         //                      7	 16, // margin top
         //                      8	 16, // margin bottom
         //                      9	 9, // margin header
         //                      10	 9, // margin footer
         //                      11	 'L');  // L - landscape, P - portrait
         // !!! DOKONCIT L P STRANKOVANIE !!! OLDO podla typu reportu, stlpcov a group !!!
         // $mpdf=new mPDF();
         $landscape_format = 'A4';
         $portrait_format = 'A4-L';
         $export_pdf_format = $landscape_format;
         if ($this->reports4you_type == "custom_report" && $set_pdf_portrait === true) {
             $export_pdf_format = $portrait_format;
         } elseif ($this->report_obj->reportinformations["Group2"] != "none" && $this->report_obj->reportinformations["timeline_type2"] == "cols") {
             $export_pdf_format = $portrait_format;
         } elseif ($this->report_obj->reportinformations["Group3"] != "none" && $this->report_obj->reportinformations["timeline_type3"] == "cols") {
             $export_pdf_format = $portrait_format;
         } elseif (isset($this->report_obj->reportinformations["summaries_columns"]) && count($this->report_obj->reportinformations["summaries_columns"]) > 7) {
             $export_pdf_format = $portrait_format;
         } elseif (isset($this->selectedcolumns_arr) && count($this->selectedcolumns_arr) > 10 && count($this->report_obj->reportinformations["summaries_columns"]) < 2) {
             $export_pdf_format = $portrait_format;
         }
         if (is_writable($this->temp_files_path)) {
             // class mPDF ([ string $mode [, mixed $format [, float $default_font_size [, string $default_font [, float $margin_left , float $margin_right , float $margin_top , float $margin_bottom , float $margin_header , float $margin_footer [, string $orientation ]]]]]])
             $mpdf = new mPDF('utf-8', "{$export_pdf_format}", "", "", "5", "5", "0", "5", "5", "5");
             // $this->report_obj->reportinformations["timeline_type2"] cols
             // $this->report_obj->reportinformations["timeline_type3"] cols
             // $this->report_obj->reportinformations["summaries_columns"]
             // $this->selectedcolumns_arr
             // Portrait = $mpdf=new mPDF('utf-8', 'A4');
             // Landscape = $mpdf=new mPDF('utf-8', 'A4-L');
             $mpdf->keep_table_proportions = true;
             $mpdf->SetAutoFont();
             $mpdf->WriteHTML($report_html_style, 1);
             $mpdf->WriteHTML($report_pdf);
             $filename = "Reports4You";
             if (isset($current_user) && $current_user->id != "") {
                 $filename .= "_" . $current_user->id;
             }
             $filename .= "_" . $this->report_obj->record;
             //$filename = $this->report_obj->reportname;
             $this->pdf_filename = "{$filename}.pdf";
             $this->report_filename = $this->temp_files_path . $this->pdf_filename;
             $mpdf->Output($this->report_filename, 'F');
             //if ($directOutput) {
             //echo "<script type='text/javascript' >jQuery(document).ready(function() {if (document.getElementById('report_filename')) {document.getElementById('report_filename').value='" . $this->report_filename . "';}});</script>";
             //}
         }
     }
 }
Ejemplo n.º 29
-1
 public function process(Vtiger_Request $request)
 {
     $response = new Vtiger_Response();
     $debug_fs = "";
     $reportsDeleteDenied = array();
     $ReportsTempDirectory = "test/ITS4YouReports/";
     //$path_fix = "../../../";
     $path_fix = "";
     //$filename = $path_fix."test/ITS4YouReports/".$_REQUEST["filename"].".pdf";
     $file_path = $_REQUEST["filepath"];
     // "test/$filename.png"
     if (is_writable($path_fix . $ReportsTempDirectory)) {
         if (isset($_REQUEST["canvasData"]) && $_REQUEST["canvasData"] != "") {
             $unencodedData = $_REQUEST["canvasData"];
             file_put_contents($path_fix . $file_path, base64_decode($unencodedData));
         }
         if (isset($_REQUEST["mode"]) && $_REQUEST["mode"] == "download") {
             if (file_exists($path_fix . 'modules/PDFMaker/resources/mpdf/mpdf.php')) {
                 require_once $path_fix . 'modules/PDFMaker/resources/mpdf/mpdf.php';
                 $export_pdf_format = $_REQUEST['export_pdf_format'];
                 $mpdf = new mPDF('utf-8', "{$export_pdf_format}", "", "", "5", "5", "0", "5", "5", "5");
                 $mpdf->keep_table_proportions = true;
                 $mpdf->SetAutoFont();
                 $filename = $ReportsTempDirectory . $_REQUEST['report_filename'];
                 $filename = html_entity_decode($filename, ENT_COMPAT, $default_charset);
                 $filename = $path_fix . $filename;
                 if (is_file($filename)) {
                     $mpdf->AddPage();
                     $mpdf->SetImportUse();
                     $pagecount = $mpdf->SetSourceFile($filename);
                     if ($pagecount > 0) {
                         for ($i = 1; $i <= $pagecount; $i++) {
                             $tplId = $mpdf->ImportPage($i);
                             $mpdf->UseTemplate($tplId);
                             if ($i < $pagecount) {
                                 $mpdf->AddPage();
                             }
                         }
                     }
                     if (file_exists($path_fix . $file_path) == true) {
                         $mpdf->AddPage('L');
                         $ch_image_html .= "<div style='width:100%;text-align:center;'><table class='rptTable' style='border:0px;padding:0px;margin:auto;width:80%;text-align:center;' cellpadding='5' cellspacing='0' align='center'>\n    \t\t                            <tr>\n    \t\t                                <td class='rpt4youGrpHead0' nowrap='' >";
                         $ch_image_html .= "<img src='{$site_URL}" . $file_path . "' />";
                         $ch_image_html .= "</td>\n    \t\t                            </tr>\n    \t\t                        </table></div>";
                         $mpdf->WriteHTML($ch_image_html);
                     }
                     //$mpdf->Output($filename,'F');
                     $mpdf->Output($_REQUEST['report_filename'], 'D');
                 }
             }
         }
     }
     //$response->setResult(array("done-P"));
     //$response->emit();
 }
Ejemplo n.º 30
-1
 function transfer_pdf($transfer_id = NULL)
 {
     if ($this->input->get('id')) {
         $transfer_id = $this->input->get('id');
     }
     $data['message'] = validation_errors() ? validation_errors() : $this->session->flashdata('message');
     $data['rows'] = $this->transfers_model->getAllTransferItems($transfer_id);
     $transfer = $this->transfers_model->getTransferByID($transfer_id);
     $data['from_warehouse'] = $this->transfers_model->getWarehouseByID($transfer->from_warehouse_id);
     $data['to_warehouse'] = $this->transfers_model->getWarehouseByID($transfer->to_warehouse_id);
     $data['transfer'] = $transfer;
     $data['tid'] = $transfer_id;
     $data['page_title'] = $this->lang->line("transfer");
     $this->load->library('MPDF/mpdf');
     $mpdf = new mPDF('utf-8', 'A4', '', '', 15, 15, 25, 25, 9, 9, 'L');
     $mpdf->useOnlyCoreFonts = true;
     // false is default
     $mpdf->SetProtection(array('print'));
     $mpdf->SetTitle(SITE_NAME);
     $mpdf->SetAuthor(SITE_NAME);
     $mpdf->SetCreator(SITE_NAME);
     $mpdf->SetDisplayMode('fullpage');
     $mpdf->SetAutoFont();
     $stylesheet = file_get_contents('assets/css/bootstrap-' . THEME . '.css');
     $mpdf->WriteHTML($stylesheet, 1);
     $html = $this->load->view('view_transfer', $data, TRUE);
     $name = "Transfer No. " . $transfer_id . ".pdf";
     $search = array("<div class=\"row-fluid\">", "<div class=\"span6\">", "<div class=\"span5\">", "<div class=\"span5 offset2\">");
     $replace = array("<div style='width: 100%;'>", "<div style='width: 48%; float: left;'>", "<div style='width: 40%; float: left;'>", "<div style='width: 40%; float: right;'>");
     $html = str_replace($search, $replace, $html);
     $html = str_replace($search, $replace, $html);
     $mpdf->WriteHTML($html);
     $mpdf->Output($name, 'D');
     exit;
 }