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


PHP MYPDF::Line方法代码示例

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


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

示例1: foreach

    foreach (tampilData($stmt3) as $grid1) {
        $pdf->MultiCell(10, 7, $i, 0, 'C', false, 0, '', '', false, 0, false, false, 7, 'TB');
        $pdf->MultiCell(20, 6, $grid1['no_so'], 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(20, 6, $grid1['no_seri_produk'], 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(40, 6, $grid1['nama_produk'], 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(22, 6, number_format($grid1['harga'], 2, ',', '.'), 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(5, 6, "x", 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(17, 6, $grid1['persentase'], 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(5, 6, "x", 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(7, 6, $grid1['quantity'], 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(5, 6, "=", 0, 'C', false, 0, '', '', false, 0, false, false, '', 'M');
        $pdf->MultiCell(25, 6, number_format($grid1['komisi'], 2, ',', '.'), 0, 'C', false, 1, '', '', false, 0, false, false, '', 'M');
        $i++;
    }
    $stmt2 = "select sum(komisi) as total from komisi where no_nis_sales = '{$nis}' AND cabang = '{$cabang}' AND tanggal_so BETWEEN '{$begin}' AND '{$end}'";
    foreach (tampilData($stmt2) as $total) {
    }
    $pdf->SetFont('helvetica', 'BI', 7);
    $pdf->MultiCell(151, 7, "Total Komisi", 'TB', 'C', false, 0, '', '', false, 0, false, false, 7, 'TB');
    $pdf->MultiCell(25, 6, number_format($total['total'], 2, ',', '.'), 'TB', 'C', false, 1, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(15, 7, "Terbilang", 0, 'L', false, 0, '', '', false, 0, false, false, 7, 'T');
    $pdf->MultiCell(175, 7, ": " . terbilang($total['total'], 4) . " rupiah", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->setXY($pdf->getX(), $pdf->getY() + 10);
    $pdf->Line(0, $pdf->getY(), 215, $pdf->getY());
    $pdf->setXY($pdf->getX(), $pdf->getY() + 10);
    $y = 297 - $pdf->getY();
    if ($y <= 40) {
        $pdf->AddPage();
    }
}
$pdf->Output($cabang . " - " . $dataCabang['nama_cabang'] . " (" . $begin . " s.d " . $end . ")-KOMISI.pdf", 'I');
开发者ID:underdos,项目名称:sipkom,代码行数:31,代码来源:repCetakSlipKomisi.php

示例2:

$pdf->SetMargins(30, 70, 20);
$pdf->setPrintHeader(false);
$pdf->SetAutoPageBreak(TRUE, 15);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
$image_file = K_PATH_IMAGES . 'luxindo.jpg';
$pdf->Image($image_file, 5, 0, 40, '', 'JPG', '', 'M', false, 300, '', false, false, 0, false, false, false);
$pdf->SetFont('helvetica', 'B', 17);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 13, 'PT. Luxindo Raya', 0, 2, 'L', 0, '', '', 'D', 'B');
$pdf->SetFont('helvetica', 'B', 10);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 0, 'LAPORAN PENJUALAN', 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', '', 9);
$pdf->Cell(0, 0, 'Cabang ' . $dataCabang['kode'] . ' - ' . $dataCabang['nama_cabang'], 0, 1, 'L', 0, '');
$pdf->Line(14, 30, 280, 30);
$pdf->SetFont('helvetica', '', 7);
$pdf->setXY(15, 40);
$pdf->Cell(0, 0, 'Periode ' . $begin . ' - ' . $end, 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', 'B', 7);
$pdf->setXY(15, 45);
$pdf->MultiCell(10, 7, "No", 'TB', 'C', false, 0, '', '', false, 0, false, false, 7, 'M');
$pdf->MultiCell(15, 7, "No SO", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(20, 7, "Tgl SO", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(30, 7, "No Seri", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(30, 7, "Nama Produk", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(15, 7, "Quantity", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(20, 7, "NIS", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(50, 7, "Nama Sales", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(50, 7, "Nama Qustomer", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(25, 7, "Telp", 'TB', 'C', false, 1, '', '', false, 0, false, false, '', 'M');
开发者ID:underdos,项目名称:sipkom,代码行数:31,代码来源:repLapSOPenjualan.php

示例3:

//Doppelseitiger Druck in einem Befehl
$pdf->SetBooklet(true, 15, 25);
// start of creating the documents
while ($meineSchueler = mysql_fetch_assoc($meineSchueler_tmp)) {
    $schueler_uid = $meineSchueler['usr_id'];
    $schueler_vorname = $meineSchueler['firstname'];
    $schueler_nachname = $meineSchueler['lastname'];
    $pdf->SetFont('times', '', 14);
    $pdf->setPrintHeader(true);
    // add a page
    $pdf->AddPage('P', 'A4');
    //personenbezogene Kopfdaten
    $pdf->SetXY(20, 42);
    $pdf->Cell(45, 5, $schueler_nachname . ', ' . $schueler_vorname, 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Cell(0, 5, $klassenbezeichner . ': ' . $kl, 0, 1, 'R', 0, '', 0, false, 'C', 'C');
    $pdf->Line(20, 47, 195, 47, $style2);
    $pdf->SetFont('helvetica', '', 14);
    $pdf->SetY(52);
    $pdf->SetFont('helvetica', 'B', 14);
    $pdf->MultiCell(0, 2, '', 0, 'L', 0, 1, '', '', true);
    //als verticaler Abstand, mir fiel grad nichts besseres ein
    $pdf->Cell(45, 5, 'Deine Lernziele im ' . $_SESSION['aktueller_term_name'], 0, 1, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->MultiCell(0, 1, '', 0, 'L', 0, 1, '', '', true);
    //als verticaler Abstand, mir fiel grad nichts besseres ein
    //Ausdrucken von Lernziel 1 und 2
    $lz1_tmp = mysql_query("SELECT * FROM lernstand.lernziele WHERE uid = '" . $schueler_uid . "' AND lz_nr = '1' AND term = '" . $_SESSION['aktueller_term_nr'] . "'");
    $lz2_tmp = mysql_query("SELECT * FROM lernstand.lernziele WHERE uid = '" . $schueler_uid . "' AND lz_nr = '2' AND term = '" . $_SESSION['aktueller_term_nr'] . "'");
    $lz1 = '';
    $lz2 = '';
    if (mysql_num_rows($lz1_tmp) > 0) {
        $lz1 = mysql_result($lz1_tmp, '0', 'lz_text');
开发者ID:rft2014,项目名称:buelow_web,代码行数:31,代码来源:makeBeurteilung.php

示例4: gettext

$pdf->setPrintHeader(false);
$pdf->setPrintFooter(true);
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
//set auto page breaks
$pdf->SetAutoPageBreak(FALSE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
//$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// first page
$pdf->AddPage();
$pdf->Line(20, 20, 190, 20);
$pdf->ImageEps('../extensions/exam_organization/images/upb_logo.ai', 30, 30, 13);
$pdf->SetFont('helvetica', '', 16);
$pdf->MultiCell(80, 3, gettext("exam results"), 0, 'C', 0, 0, 75, 25);
$pdf->SetFont('helvetica', 'B', 16);
$pdf->MultiCell(130, 3, $exam_name, 0, 'C', 0, 0, 50, 33);
$pdf->MultiCell(130, 3, $date . " (" . $semester . ")", 0, 'C', 0, 0, 50, 40);
$pdf->SetFont('helvetica', '', 10);
//$pdf->MultiCell(130, 2, "Prof. Dr. Reinhard Keil", 0, 'C', 0, 0, 50, 50);
$pdf->Line(20, 60, 190, 60);
$eoDatabase = exam_organization_database::getInstance();
$eoDatabase->calculateExamResults($course);
$participants = $eoDatabase->getParticipantsForTerm($examTerm);
$notPassed = 0;
//get exam key
$examObject = exam_organization_exam_object_data::getInstance($course);
开发者ID:rolwi,项目名称:koala,代码行数:31,代码来源:export_results_and_statistics_pdf.php

示例5: MYPDF

<?php

$pdf = new MYPDF();
//$pdf->setMargins(20,20,20);
$pdf->AliasNbPages();
$pdf->AddPage('L', 'A4');
$pdf->AddFont('PT_Serif-Web-Bold', '', 'PT_Serif-Web-Bold.php');
$pdf->SetFont('PT_Serif-Web-Bold', '', 32);
$pdf->image('./images/lippo.jpg', 25, 4, 50, 30);
$pdf->Text(290 / 2 - $pdf->GetStringWidth('Lumiere Club') / 2, 15, 'Lumiere Club');
$pdf->SetFont('PT_Serif-Web-Bold', '', 30);
$pdf->Text(290 / 2 - $pdf->GetStringWidth('Lippo Mall Kemang') / 2, 26, 'Lippo Mall Kemang');
$pdf->SetFont('Times', '', 12);
$pdf->Text(290 / 2 - $pdf->GetStringWidth('Jl. Pangeran Antasari 36 Jakarta Selatan - 12150') / 2, 33, 'Jl. Pangeran Antasari 36 Jakarta Selatan - 12150');
//$pdf->setDrawColor(105,102,102);
$pdf->Line(10, 36, 290 - 5, 36);
$pdf->SetFont('Arial', '', 22);
$pdf->Text(290 / 2 - $pdf->GetStringWidth('Report Data Upgrade Membership') / 2, 45, 'Report Data Upgrade Membership');
$awal = date('d F Y', strtotime($tgl1));
$akhir = date('d F Y', strtotime($tgl2));
$periode = "{$awal} to {$akhir}";
$pdf->SetFont('Arial', '', 14);
$pdf->Text(290 / 2 - $pdf->GetStringWidth($periode) / 2, 54, $periode);
//$pdf->Line(10, 10, 210-10, 10);
$pdf->SetXY(10, 60);
$pdf->SetFont('Helvetica', '', 12);
$content = UpgradeMembership::model()->with(array('member', 'user'))->findAll(array('condition' => 'upgrade_date BETWEEN :date1 AND :date2', 'params' => array(':date1' => $tgl1, ':date2' => $tgl2)));
if ($content == null) {
    $pdf->SetFont('Helvetica', '', 48);
    $pdf->Text(290 / 2 - $pdf->GetStringWidth("No Data Found") / 2, 84, "No Data Found");
    $pdf->Output();
开发者ID:nicovicz,项目名称:reward-point,代码行数:31,代码来源:_report.php

示例6:

     $pdf->AddPage();
     $pdf->CreateTextBox($deptc, 100, 10, 80, 10, 10, 'I', 'R');
     $pdf->CreateTextBox($event, 100, 15, 80, 10, 10, 'I', 'R');
     $currx = 3;
     $curry = 55;
 }
 $pdf->CreateTextBox($i + 1, $currx, $curry, 80, 10, 10);
 $pdf->CreateTextBox($teamid[$i], $currx + 15, $curry, 80, 10, 10);
 $pdf->CreateTextBox($marks[$i], $currx + 140, $curry, 80, 10, 10);
 $pdf->CreateTextBox($rank[$i], $currx + 165, $curry, 80, 10, 10);
 for ($j = 0; $j <= $participant[$i]; $j++) {
     $pdf->CreateTextBox($memcid[$i][$j], $currx + 48, $curry, 80, 10, 10);
     //member cogniid
     $pdf->CreateTextBox($memname[$i][$j], $currx + 87, $curry, 80, 10, 10);
     //member name
     $pdf->Line(15, $curry, 15, $curry + 7);
     //1st vertical line
     $pdf->Line(37, $curry, 37, $curry + 7);
     //2nd vertical line
     $pdf->Line(70, $curry, 70, $curry + 7);
     //3rd vertical line
     $pdf->Line(97, $curry, 97, $curry + 7);
     //4th vertical line
     $pdf->Line(155, $curry, 155, $curry + 7);
     //5th vertical line
     $pdf->Line(180, $curry, 180, $curry + 7);
     //6th vertical line
     $pdf->Line(200, $curry, 200, $curry + 7);
     //7th vertical line
     $curry += 7;
 }
开发者ID:rohitjangid,项目名称:cognizance_department_tool,代码行数:31,代码来源:score_report.php

示例7: dirname

$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
    require_once dirname(__FILE__) . '/lang/eng.php';
    $pdf->setLanguageArray($l);
}
$pdf->SetFont('times', '', 14);
$pdf->setPrintHeader(true);
// add a page
$pdf->AddPage('P', 'A4');
$pdf->Line(25, 20, 185, 20, $style1);
$lfdnr = 0;
$dist = 0;
$pdf->setY(30);
while ($meineSchueler = mysql_fetch_assoc($meineSchueler_tmp)) {
    $dist = $dist + 7.5;
    $lfdnr++;
    $schueler_vorname = $meineSchueler['firstname'];
    $schueler_nachname = $meineSchueler['lastname'];
    $pdf->setX(25);
    $pdf->Cell(10, 15, $lfdnr . '.  ', 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Cell(0, 15, $schueler_nachname . ', ' . $schueler_vorname, 0, 1, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Line(25, 26 + $dist, 185, 26 + $dist, $style2);
}
$pdf->Output('Klassenliste_' . $_SESSION['myclass'] . '.pdf', 'I');
mysql_close($verbindung);
开发者ID:rft2014,项目名称:buelow_web,代码行数:31,代码来源:makeKlassenliste_gefiltert.php

示例8:

$pdf->SetMargins(30, 70, 20);
$pdf->setPrintHeader(false);
$pdf->SetAutoPageBreak(TRUE, 15);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
$image_file = K_PATH_IMAGES . 'luxindo.jpg';
$pdf->Image($image_file, 5, 0, 40, '', 'JPG', '', 'M', false, 300, '', false, false, 0, false, false, false);
$pdf->SetFont('helvetica', 'B', 17);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 13, 'PT. Luxindo Raya', 0, 2, 'L', 0, '', '', 'D', 'B');
$pdf->SetFont('helvetica', 'B', 10);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 0, 'LAPORAN KOMISI SALES', 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', '', 9);
$pdf->Cell(0, 0, 'Cabang ' . $dataCabang['kode'] . ' - ' . $dataCabang['nama_cabang'], 0, 1, 'L', 0, '');
$pdf->Line(14, 30, 195, 30);
$pdf->SetFont('helvetica', '', 7);
$pdf->setXY(15, 40);
$pdf->Cell(0, 0, 'Periode ' . $begin . ' - ' . $end, 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', 'B', 7);
$pdf->setXY(15, 45);
$pdf->MultiCell(10, 7, "No", 'TB', 'C', false, 0, '', '', false, 0, false, false, 7, 'M');
$pdf->MultiCell(30, 7, "NIS", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(60, 7, "Nama Sales", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(20, 7, "Jumlah SO", 'TB', 'C', false, 0, '', '', false, 0, false, false, '', 'M');
$pdf->MultiCell(30, 7, "Komisi", 'TB', 'C', false, 1, '', '', false, 0, false, false, '', 'M');
$pdf->SetFont('helvetica', '', 7);
$i = 1;
foreach (tampilData($stmt) as $grid) {
    $pdf->setXY(15, 55 + 7 * ($i - 1));
    if ($i % 2 == 0) {
开发者ID:underdos,项目名称:sipkom,代码行数:31,代码来源:repLapKomSales.php


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