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


PHP MYPDF::Cell方法代码示例

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


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

示例1:

$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$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
$pdf->setLanguageArray($l);
//initialize document
$pdf->AliasNbPages();
// set font
$pdf->SetFont("times", "BI", 12);
// Start Page Group
$pdf->startPageGroup();
// add a page
$pdf->AddPage();
$pdf->Cell(0, 10, "Start of group 1", 0, 1, 'L');
$pdf->AddPage();
// Start new Page Group
$pdf->startPageGroup();
$pdf->AddPage();
$pdf->Cell(0, 10, "Start of group 2", 0, 1, 'L');
$pdf->AddPage();
$pdf->AddPage();
$pdf->AddPage();
//Close and output PDF document
$pdf->Output("example_023.pdf", "I");
//============================================================+
// END OF FILE
//============================================================+
开发者ID:arhe,项目名称:pwak,代码行数:31,代码来源:example_023.php

示例2: MYPDF

        $this->SetFont('helvetica', 'I', 8);
        $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
    }
}
$pdf = new MYPDF('L', 'mm', 'A4', true, 'UTF-8', false);
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$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');
开发者ID:underdos,项目名称:sipkom,代码行数:31,代码来源:repLapSOPenjualan.php

示例3:

$pdf->SetKeywords("TCPDF, PDF, example, test, guide");
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$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
$pdf->setLanguageArray($l);
//initialize document
$pdf->AliasNbPages();
// add a page
$pdf->AddPage();
// ---------------------------------------------------------
// set font
$pdf->SetFont("times", "BI", 12);
// print a line using Cell()
$pdf->Cell(0, 10, "Example 003", 0, 1, 'C');
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output("example_003.pdf", "I");
//============================================================+
// END OF FILE
//============================================================+
开发者ID:justinhernandez,项目名称:convert,代码行数:31,代码来源:example_003.php

示例4: array

// set font
$pdf->SetFont('helvetica', '', 9);
# creamos una página en blanco
$pdf->Addpage();
$pdf->SetFont('helvetica', '', 9);
// define barcode style
$style = array('position' => 'R', 'align' => 'C', 'stretch' => 0, 'fitwidth' => 1, 'cellfitalign' => '', 'border' => 1, 'hpadding' => '2', 'vpadding' => '2', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, 'text' => true, 'font' => 'Helvetica', 'fontsize' => 6, 'stretchtext' => 4);
$styleBC = array('position' => 'R', 'border' => 1, 'padding' => 2, 'fgcolor' => array(0, 0, 0), 'bgcolor' => array(255, 255, 255), 'text' => true, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4);
$estilo_tabla = "<style>\r\n    .tablaFicha{\r\n        width: 100%;\r\n        font-size: 10px;        \r\n    }\r\n    .celdaTablaFicha{\r\n        border: 1px solid #CCCCCC;\r\n        vertical-align: middle;\r\n    }\r\n    .fecha{\r\n        text-align: right;\r\n    }\r\n    .encabezado{\r\n        background-color: #EFEFEF;\r\n    }\r\n</style>";
$sTituloReporte = "FICHA DE INGRESO A BANCO DE PROYECTOS";
//--------------------Contenido del reporte >---------------------------------------------------
$pdf->SetFont('times', 'L', 6);
$pdf->write1DBarcode($infoBcoPDF['IdBco'], 'C39', '', '', '', 12, 0.4, $style, 'N');
$pdf->Ln();
$pdf->SetFont('times', '', 9);
$pdf->Cell(0, 0, strtoupper($sTituloReporte), 0, 1, 'C', 0, 1);
$pdf->Ln(2);
$inicio_tabla_nomProyecto = "";
$inicio_tabla_nomProyecto .= "<table class=\"tablaFicha\" cellpadding=\"5\">\r\n    <tr>\r\n        <td colspan=\"6\" class=\"fecha\">FECHA DE REGISTRO:</td>\r\n        <td class=\"celdaTablaFicha\">" . $infoBcoPDF['FecReg'] . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">NOMBRE DEL PROYECTO:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['NomObr']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">SECTOR:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['NomSec']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">UNIDAD EJECUTORA:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['NomUE']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">OBJETIVO DEL PROYECTO:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"6\">" . utf8_encode($infoBcoPDF['Justifi']) . "</td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\" colspan=\"2\">VIDA &Uacute;TIL DEL PROYECTO:</td>\r\n        <td class=\"celdaTablaFicha\">" . utf8_encode($infoBcoPDF['vidaPry']) . " A&Ntilde;OS</td>\r\n        <td class=\"celdaTablaFicha encabezado\" colspan=\"2\">MONTO TOTAL DE INVERSI&Oacute;N:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"2\">\$" . number_format($infoBcoPDF['monto'], 2) . " </td>\r\n    </tr>\r\n    <tr>\r\n        <td class=\"celdaTablaFicha encabezado\">COBERTURA:</td>\r\n        <td class=\"celdaTablaFicha\">" . utf8_encode($infoBcoPDF['NomCob']) . "</td>";
if ($infoBcoPDF['IdCob'] === "2") {
    $inicio_tabla_nomProyecto .= "<td class=\"celdaTablaFicha encabezado\">REGIONES:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"4\">";
    $regionesFicha = "";
    for ($i = 0; $i < count($infoBcoPDF['regiones']); $i++) {
        $regionesFicha .= $infoBcoPDF['regiones'][$i]['CveReg'] . " " . utf8_encode($infoBcoPDF['regiones'][$i]['NomReg']) . ", ";
    }
    $regionesFicha = trim($regionesFicha, ", ");
    $inicio_tabla_nomProyecto .= $regionesFicha . "</td> ";
} else {
    if ($infoBcoPDF['IdCob'] === "3") {
        $inicio_tabla_nomProyecto .= "<td class=\"celdaTablaFicha encabezado\">MUNICIPIOS:</td>\r\n        <td class=\"celdaTablaFicha\" colspan=\"4\">";
        $municipiosFicha = "";
开发者ID:jkarlos1402,项目名称:DGIMy,代码行数:31,代码来源:fichaTecnica_pdf.php

示例5: MYPDF

    {
        $this->SetY(-15);
        $this->SetFont('helvetica', 'I', 8);
        $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
    }
}
$pdf = new MYPDF('P', 'mm', 'A4', true, 'UTF-8', false);
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(15, 10, 15);
$pdf->setPrintHeader(false);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
foreach (tampilData($stmt) as $grid) {
    $pdf->SetFont('helvetica', 'B', 9);
    $pdf->setXY(15, $pdf->getY(), true);
    $pdf->Cell(0, 0, 'SLIP KOMISI SALES', 0, 2, 'C', 0, '', '');
    $pdf->SetFont('helvetica', '', 7);
    $pdf->setXY(15, $pdf->getY(), true);
    $pdf->Cell(0, 0, 'PT. LUXINDO RAYA', 0, 2, 'C', 0, '', '');
    $pdf->SetFont('helvetica', 'B', 7);
    $pdf->setXY(15, $pdf->getY(), true);
    $pdf->MultiCell(15, 7, "NIS", 0, 'L', false, 0, '', '', false, 0, false, false, 7, 'M');
    $pdf->MultiCell(5, 7, ":", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(100, 7, $grid['nis'], 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(18, 7, "Periode", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(5, 7, ":", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(45, 7, $begin . " s.d " . $end, 0, 'L', false, 1, '', '', false, 0, false, false, '', 'M');
    $pdf->setXY(15, $pdf->getY() - 2, true);
    $pdf->MultiCell(15, 7, "Nama", 0, 'L', false, 0, '', '', false, 0, false, false, 7, 'T');
    $pdf->MultiCell(5, 7, ":", 0, 'L', false, 0, '', '', false, 0, false, false, '', 'M');
    $pdf->MultiCell(100, 7, $grid['nama'], 0, 'L', false, 0, '', '', false, 1, false, false, '', 'M');
开发者ID:underdos,项目名称:sipkom,代码行数:31,代码来源:repCetakSlipKomisi.php

示例6: dirname

$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);
}
// ---------------------------------------------------------
for ($i = 0; $i < $anzahlSchueler; $i++) {
    // set font
    $pdf->SetFont('times', '', 14);
    $pdf->setPrintHeader(true);
    // add a page
    $pdf->AddPage('P', 'A4');
    //personenbezogene Kopfdaten
    $pdf->SetXY(20, 42);
    $pdf->Cell(45, 5, ucfirst(utf8_encode($nachname[$i])) . ', ' . ucfirst(utf8_encode($vorname[$i])), 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    //$pdf->Cell(35, 5, ucfirst(utf8_encode($vorname[$i])) , 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    $pdf->Cell(0, 5, $klassenbezeichner . ': ' . $kl, 0, 1, 'R', 0, '', 0, false, 'C', 'C');
    //$pdf->SetY(35);
    //$pdf->Cell(0, 5, 'Schuljahr 2013/14'  , 0, 0, 'L', 0, '', 0, false, 'C', 'C');
    //$pdf->Cell(0, 5, 'Halbjahr' , 0, 1, 'R', 0, '', 0, false, 'C', 'C');
    $ks = array(100, 5, 5, 5);
    //statisch,laenger als je noetig, da alle nach der ersten gleich lang;ks=kopfspalten
    //$pdf->SetXY(20,45);
    $pdf->SetFont('times', '', 9);
    $pdf->Cell($ks[0], 5, '', 0, 0, 'C', 0, '', 0, false, 'M', 'M');
    $pdf->SetXY(122.5, 68);
    //alt 78
    $pdf->StartTransform();
    $pdf->Rotate(90);
    $pdf->Cell(15, 5, 'Schüler', 1, 2, 'C', 0, '', 0, false, 'M', 'M');
开发者ID:rft2014,项目名称:buelow_web,代码行数:31,代码来源:makePdf.php

示例7:

// <tbody>
// <tr>
// <td>Yukarıda ismi geçen kişilerden belirtilen MYK Mesleki Yeterlilik Belgesi sınav ücretlerin tahsil edildiğini, iş bu ücretlerin doğruluğunu ve kayıt altına alındığını taahhüt ederim.</td>
// </tr>
// <tr style="text-align:center">
// <td>../../....</td>
// </tr>
// <tr style="text-align:center">
// <td>İmza</td>
// </tr>
// <tr style="text-align:center">
// <td><strong>'.$this->tesvik['IMZA_UNVAN'].'</strong></td>
// </tr>
// <tr style="text-align:center">
// <td>'.$this->tesvik['IMZA_ISIM'].'</td>
// </tr>
// </tbody>
// </table>';
// $pdf->SetFont('DejaVuSans', '', 12, '', true);
// $pdf->writeHTMLCell(0, 0, '', '', $ImzaTable, 0, 1, 0, true, 'C', true);
$pdf->SetFont('DejaVuSans', '', 12, '', true);
$pdf->Cell(440, 0, '../../....', 0, 1, 'C', 0, '', 0, false);
$pdf->SetTextColor(192, 192, 192);
$pdf->Cell(440, 0, 'İmza', 0, 1, 'C', 0, '', 0, false);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(440, 0, $this->tesvik['IMZA_UNVAN'], 0, 1, 'C', 0, '', 0, false);
$pdf->Cell(440, 0, $this->tesvik['IMZA_ISIM'], 0, 1, 'C', 0, '', 0, false);
// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output($this->IstekId . '#Ücret İadesi Talebi.pdf');
exit;
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:tesvikpdf.php

示例8:

// set pdf viewer preferences
$pdf->setViewerPreferences(array('Duplex' => 'DuplexFlipLongEdge'));
//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 = '';
开发者ID:rft2014,项目名称:buelow_web,代码行数:31,代码来源:makeBeurteilung.php

示例9:

$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);
// ---------------------------------------------------------
$LM = $pdf->getMargins()['left'];
$RM = $pdf->getMargins()['right'];
$W = $pdf->getPageWidth() - $RM - $LM;
// ---------------------------------------------------------
$pdf->SetFont('helvetica', '', 12);
$pdf->AddPage();
// Print address
$pdf->SetFont('helvetica', '', 10);
foreach ($REC_ADRESS as $line) {
    $pdf->Cell(0, 0, $line, 0, 1);
}
$pdf->SetFont('helvetica', '', 8);
$pdf->ln();
$pdf->Cell(0, 0, $SPECIAL_NOTE, 0, 1);
$pdf->ln();
// ---------------------------------------------------------
$pdf->SetY(90);
$pdf->SetFont('helvetica', '', 12);
$pdf->Image($HEADER_IMG, $pdf->GetX(), $pdf->GetY(), $W, '', 'png', '', 'T', true, 300, '', false, false, 0, true, false, false);
$pdf->SetY(120);
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(0, 0, $TITLE, 0, 1);
$pdf->SetY(140);
$pdf->SetFont('helvetica', '', 12);
$pdf->writeHTML($HTML, true, false, true, false, '');
开发者ID:AstroPhysicsUZH,项目名称:lisa_symposium_2016_homepage,代码行数:31,代码来源:receipt.php

示例10:

$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$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
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('times', 'BI', 12);
// add a page
$pdf->AddPage();
// print a line using Cell()
$pdf->Cell(0, 10, 'Example 003', 0, 1, 'C');
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('example_003.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
开发者ID:nachtschatt3n,项目名称:candycane,代码行数:31,代码来源:example_003.php

示例11: stripslashes

	$pdf->WriteHTML('<table align="center" width="100%"><tr><td align="center" valign="middle"><img src="../images/medie/'.$im['foto_g_immobile'].'" /></td></tr></table>',false);
}
else 
{
	$pdf->WriteHTML('<table align="center" width="100%"><tr><td align="center" valign="middle"><img src="../images/medie/imagenotavailable_big.gif" /></td></tr></table>',false);
}
$pdf->SetFont($fontLan,'',10);
//Pagina della descrizione
* 
*/
$pdf->AddPage();
$pdf->setPrintHeader(true);
$pdf->SetFont($fontLan, 'B', 14);
$pdf->SetY(5);
$pdf->SetX(33);
$pdf->Cell(145, 0, $titolo, 0, 2, 'C');
$pdf->SetY(10);
if ($prezzo > 0) {
    $pdf->WriteHTML('<div align="center">&euro; ' . number_format($im['prezzo'], 0, ',', '.') . '</div>', false);
}
if ($im['foto_g_immobile'] != '') {
    $pdf->Image(IMAGESPATH . 'medie/' . $im['foto_g_immobile'], 13, 15, 0, 80, '', '', 'C');
} else {
    $pdf->Image(IMAGESPATH . 'medie/imagenotavailable_big.gif', 5, 17);
}
$pdf->SetY(100);
$pdf->SetX(10);
$pdf->SetFont($fontLan, '', 12);
$pdf->WriteHTML('<table align="center" width="520"><tr><td align="left">' . stripslashes($im['descrizione_' . $lan]) . '</td></tr></table>', false);
if ($im['residence'] == 1) {
    $appartamenti = mysql_query("select * from immobili i, tipi t where i.id_tipi=t.id_tipi and id_residence=" . $im['id_immobili'] . ' order by ordine');
开发者ID:gimoz71,项目名称:Agenzia-Radar,代码行数:31,代码来源:brochure.php

示例12: explode

     $imgpath = "../../gfx/" . get_nopreview_icon($result[$n]['resource_type'], $result[$n]['file_extension'], false, true);
     $preview_extension = explode(".", $imgpath);
     if (count($preview_extension) > 1) {
         $preview_extension = trim(strtolower($preview_extension[count($preview_extension) - 1]));
     }
 }
 if (file_exists($imgpath)) {
     # cells are used for measurement purposes only
     # Two ways to size image, either by height or by width.
     $thumbsize = getimagesize($imgpath);
     if ($thumbsize[0] > $thumbsize[1]) {
         if ($sheetstyle == "thumbnails") {
             $topy = $pdf->GetY();
             $topx = $pdf->GetX();
             if ($config_sheetthumb_include_ref) {
                 $pdf->Cell($imagesize, ($refnumberfontsize + $leading) / 72, $ref, 0, 2, 'L', 0, '', 1);
             }
             for ($ff = 0; $ff < count($config_sheetthumb_fields); $ff++) {
                 $value = "";
                 $value = str_replace("'", "\\'", $result[$n]['field' . $config_sheetthumb_fields[$ff]]);
                 $plugin = "../../plugins/value_filter_" . $csf[$ff]['name'] . ".php";
                 if ($csf[$ff]['value_filter'] != "") {
                     eval($csf[$ff]['value_filter']);
                 } else {
                     if (file_exists($plugin)) {
                         include $plugin;
                     }
                 }
                 $value = TidyList($value);
                 $pdf->Cell($imagesize, ($refnumberfontsize + $leading) / 72, $value, 0, 2, 'L', 0, '', 1);
             }
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:contactsheet.php

示例13: Footer

        $this->Ln(15);
    }
    public function Footer()
    {
        $this->SetY(-15);
        // Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        // Número de página
        $this->Cell(0, 10, 'Pagina ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new MYPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont("Arial", "", 6);
$pdf->Cell(0, 3, utf8_decode("Fecha de Impresión:") . date('Y-m-d  H:m:i'), 0, 1, "R");
$pdf->SetFont("Arial", "", 10);
//parte datos de la persona
$pdf->x1 = 7;
$pdf->y1 = $pdf->GetY();
$pdf->SetWidths(array(40, 60, 40, 60));
$pdf->Row_SinLine(array("Clave de Evaluado:", $row_srcEvaluado["CodigoEvaluado"], utf8_decode("Fecha de Evaluación:"), $row_srcEvalExamenes["FechaEvaluacion"]), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Nombre de Evaluado:", utf8_decode($row_srcEvaluado["Nombre"] . " " . $row_srcEvaluado["Paterno"] . " " . $row_srcEvaluado["Materno"]), "", ""), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Puesto:", utf8_decode($row_srcEvaluado["Puesto"]), "No. de Oficio:", $row_srcEvaluado["cOficio"]), "");
$pdf->Ln(3);
$pdf->SetWidths(array(40, 200));
$pdf->Row_SinLine(array("Dependencia:", utf8_decode($row_srcEvaluado["Dependencia"])), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Subdependencia:", "-"), "");
开发者ID:gerardoGomr,项目名称:sise,代码行数:31,代码来源:evaluados_seguimiento_pdf.blade.php

示例14:

$pdf->SetFooterMargin(10);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, 15);
// set font
$pdf->SetFont('freesans', '', 12, '', true);
// add a page
$pdf->AddPage();
// page styles
$pdf->SetTextColor(0);
$pdf->SetFillColor(245);
$fill = FALSE;
// border
$border = '';
// header
$pdf->SetFont('freesans', '', 8, '', true);
$pdf->Cell(25, 3, mb_strtoupper(api_text("module-diary_export-sport"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(25, 3, mb_strtoupper(api_text("module-diary_export-sort"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(35, 3, mb_strtoupper(api_text("module-diary_export-time"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(25, 3, mb_strtoupper(api_text("module-diary_export-distance"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(130, 3, mb_strtoupper(api_text("module-diary_export-description"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Cell(0, 3, mb_strtoupper(api_text("module-diary_export-datetraining"), 'UTF-8'), $border, 0, 'L', false);
$pdf->Ln();
//Colora dettagli blu
$pdf->SetTextColor(0, 0, 255);
foreach ($trainings->results as $training) {
    // check selected
    if ($training->id == $_GET['idTraining']) {
        $tr_class = "info";
    } else {
        $tr_class = NULL;
    }
开发者ID:masKratter,项目名称:module-diary,代码行数:31,代码来源:module-diary_export_list.php

示例15:

$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);
// ---------------------------------------------------------
$LM = $pdf->getMargins()['left'];
$RM = $pdf->getMargins()['right'];
$W = $pdf->getPageWidth() - $RM - $LM;
// ---------------------------------------------------------
$pdf->SetFont('helvetica', '', 12);
$pdf->AddPage();
// Print address
$pdf->SetFont('helvetica', '', 10);
foreach ($REC_ADRESS as $line) {
    $pdf->Cell(0, 0, $line, 0, 1);
}
$pdf->SetFont('helvetica', '', 8);
$pdf->ln();
$pdf->Cell(0, 0, $SPECIAL_NOTE, 0, 1);
$pdf->ln();
$pdf->SetY(90);
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(0, 0, "Invoice", 0, 1);
// ---------------------------------------------------------
$pdf->SetY(100);
$pdf->SetFont('helvetica', '', 12);
$pdf->Image($HEADER_IMG, $pdf->GetX(), $pdf->GetY(), $W, '', 'png', '', 'T', true, 300, '', false, false, 0, true, false, false);
$w2 = 20;
$pdf->SetY(140);
foreach ($INVOICE_ITMS as $i) {
开发者ID:AstroPhysicsUZH,项目名称:lisa_symposium_2016_homepage,代码行数:31,代码来源:invoice.php


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