當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MYPDF::WriteHtml方法代碼示例

本文整理匯總了PHP中MYPDF::WriteHtml方法的典型用法代碼示例。如果您正苦於以下問題:PHP MYPDF::WriteHtml方法的具體用法?PHP MYPDF::WriteHtml怎麽用?PHP MYPDF::WriteHtml使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MYPDF的用法示例。


在下文中一共展示了MYPDF::WriteHtml方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: strftime

        $pdf_filter[] = $kga['lang']['export_extension']['refundable_refundable'];
        break;
    case 1:
        $pdf_filter[] = $kga['lang']['export_extension']['refundable_not_refundable'];
        break;
}
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_title);
$pdf->setPrintHeader(false);
$pdf->AddPage();
$pdf->SetFont('freesans');
if (isset($_REQUEST['create_bookmarks'])) {
    $pdf->Bookmark($pdf_title, 0, 0);
}
//$pdf->ImageEps('kimai-logo.ai', 0, 10, 60, 0, "http://www.kimai.org", true, 'T', 'R'); // include company logo
$pdf->WriteHtml('<h1>' . $pdf_title . '</h1>');
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['time_period'] . ':</b> ' . strftime($kga->getDateFormat(2), $in) . ' - ' . strftime($kga->getDateFormat(2), $out));
if (isset($pdf_filter)) {
    $pdf->ln();
    $pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['tab_filter'] . ':</b> ' . implode(' | ', $pdf_filter));
}
if (!empty($_REQUEST['document_comment'])) {
    $pdf->ln();
    $pdf->WriteHtml($_REQUEST['document_comment']);
}
if (isset($_REQUEST['print_summary'])) {
    if (isset($_REQUEST['create_bookmarks'])) {
        $pdf->Bookmark($kga['lang']['export_extension']['summary'], 0, 0);
    }
    $pdf->ln();
開發者ID:kimai,項目名稱:kimai,代碼行數:31,代碼來源:export_pdf.php

示例2: strftime

        $pdf_filter[] = $kga['lang']['export_extension']['refundable_refundable'];
        break;
    case 1:
        $pdf_filter[] = $kga['lang']['export_extension']['refundable_not_refundable'];
        break;
}
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_title);
$pdf->setPrintHeader(false);
$pdf->AddPage();
$pdf->setFont('helvetica');
if (isset($_REQUEST['create_bookmarks'])) {
    $pdf->Bookmark($pdf_title, 0, 0);
}
//$pdf->ImageEps('kimai-logo.ai', 0, 10, 60, 0, "http://www.kimai.org", true, 'T', 'R'); // include company logo
$pdf->WriteHtml('<h1>' . $pdf_title . '</h1>');
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['time_period'] . ':</b> ' . strftime($kga['date_format']['2'], $in) . ' - ' . strftime($kga['date_format']['2'], $out));
if (isset($pdf_filter)) {
    $pdf->ln();
    $pdf->WriteHtml('<b>' . $kga['lang']['export_extension']['tab_filter'] . ':</b> ' . implode(' | ', $pdf_filter));
}
if (!empty($_REQUEST['document_comment'])) {
    $pdf->ln();
    $pdf->WriteHtml($_REQUEST['document_comment']);
}
$pdf->ln();
if (isset($_REQUEST['print_summary'])) {
    if (isset($_REQUEST['create_bookmarks'])) {
        $pdf->Bookmark($kga['lang']['export_extension']['summary'], 0, 0);
    }
開發者ID:jo91,項目名稱:kimai,代碼行數:31,代碼來源:export_pdf2.php

示例3: strftime

    case 0:
        $pdf_filter[] = $kga['lang']['xp_ext']['refundable_refundable'];
        break;
    case 1:
        $pdf_filter[] = $kga['lang']['xp_ext']['refundable_not_refundable'];
        break;
}
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_title);
$pdf->setPrintHeader(false);
$pdf->AddPage();
if (isset($_REQUEST['create_bookmarks'])) {
    $pdf->Bookmark($pdf_title, 0, 0);
}
//$pdf->ImageEps('kimai-logo.ai', 0, 10, 60, 0, "http://www.kimai.org", true, 'T', 'R'); // include company logo
$pdf->WriteHtml('<h1>' . $pdf_title . '</h1>');
$pdf->ln();
$pdf->WriteHtml('<b>' . $kga['lang']['xp_ext']['time_period'] . ':</b> ' . strftime($kga['date_format']['2'], $in) . ' - ' . strftime($kga['date_format']['2'], $out));
if (isset($pdf_filter)) {
    $pdf->ln();
    $pdf->WriteHtml('<b>' . $kga['lang']['xp_ext']['filter'] . ':</b> ' . implode(' | ', $pdf_filter));
}
if (!empty($_REQUEST['document_comment'])) {
    $pdf->ln();
    $pdf->WriteHtml($_REQUEST['document_comment']);
}
if (isset($_REQUEST['print_summary'])) {
    //Create the summary.
    $zef_summary = array();
    $exp_summary = array();
    foreach ($arr_data as $one_entry) {
開發者ID:pombredanne,項目名稱:ArcherSys,代碼行數:31,代碼來源:export_pdf.php


注:本文中的MYPDF::WriteHtml方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。