当前位置: 首页>>代码示例>>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;未经允许,请勿转载。