本文整理汇总了PHP中MYPDF::SetX方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::SetX方法的具体用法?PHP MYPDF::SetX怎么用?PHP MYPDF::SetX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::SetX方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$pdf->SetFont('DejaVu Sans', '', 12);
$pdf->Cell(19, 10, $labgrupa, 0, 0, 'C');
$pdf->Ln();
}
$pdf->SetFont('DejaVu Sans', '', 12);
$pdf->Cell(40, 10, 'Broj indeksa:');
$pdf->SetFont('DejaVu Sans', '', 12);
$pdf->Cell(38, 10, $brindexa);
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('DejaVu Sans', '', 12);
$pdf->Cell(60, 10, 'Potpis:', 0, 0, 'C');
$pdf->Ln();
$pdf->Cell(60, 10, '', 'B', 0, 'C');
$pdf->SetY(-90);
$pdf->SetX(-80);
$pdf->SetFont('DejaVu Sans', '', 12);
$pdf->Cell(40, 10, 'Ocjena:');
$pdf->SetFont('DejaVu Sans', '', 16);
$pdf->Cell(40, 10, $bodova_zadaca);
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetX(-80);
$pdf->SetFont('DejaVu Sans', '', 12);
$pdf->Cell(60, 10, 'Potpis tutora:', 0, 0, 'C');
$pdf->Ln();
$pdf->SetX(-80);
$pdf->Cell(60, 10, '', 'B', 0, 'C');
include_once 'lib/geshi/geshi.php';
示例2: unlink
$pdf->Cell($cellsize[0], $bottomy - $topy + $imagesize + 0.2, '', 0, 0);
} else {
$pdf->Cell($cellsize[0], $cellsize[1], '', 0, 0);
}
}
$n = $n++;
if ($i == $columns) {
$pdf->ln();
$i = 0;
$j++;
if ($j > $rowsperpage) {
$j = 0;
if ($n < count($result) - 1) {
//avoid making an additional page if it will be empty
$pdf->AddPage();
$pdf->SetX(1);
$pdf->SetY(1.2);
}
}
}
}
}
}
#Make AJAX preview?:
if ($preview == true && isset($imagemagick_path)) {
if (file_exists(get_temp_dir() . "/contactsheetrip.jpg")) {
unlink(get_temp_dir() . "/contactsheetrip.jpg");
}
if (file_exists(get_temp_dir() . "/contactsheet.jpg")) {
unlink(get_temp_dir() . "/contactsheet.jpg");
}
示例3: 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">€ ' . 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) {
示例4: while
while ($item = mysql_fetch_array($faecherTableHeader)) {
$fach[] = $item[0];
}
for ($a = 1; $a <= $fachAnzahl; $a++) {
$pdf->Cell(15, 5, $fach[$a], 1, 2, 'C', 0, '', 3, false, 'T', 'C');
}
//reset(mysql_fetch_assoc($faecherTableHeader));
$pdf->Cell(15, 5, 'Eltern', 1, 1, 'C', 0, '', 0, false, 'T', 'C');
$pdf->StopTransform();
$kompBreite = 100 + ($fachAnzahl + 2) * 5;
$pdf->Ln();
$pdf->SetY(68);
for ($k = 0; $k < $fragenAnzahl; $k++) {
//$punkte = mysql_query("SELECT * FROM bewertung WHERE uid = '".$uid[$i]."' AND frage = '".$frageNr[$k]."'");
//erste Kompetenz
$pdf->SetX(20);
$pdf->SetFont('helvetica', 'b', '9');
if ($k == 0) {
$pdf->MultiCell($kompBreite, 5, 'Sachkompetenz', 'LRT', 'L', 0, 1, '', '', true);
}
$pdf->SetFont('times', '', '9');
$pdf->SetX(20);
//Erste Spalte mit Fragetexten
if ($frageNr[$k] !== '39' && $frageNr[$k] !== '71' && $frageNr[$k] !== '77' && $frageNr[$k] !== '78') {
$fragetextneu[$k] = 'Ich kann ' . $fragetext[$k];
} else {
$fragetextneu[$k] = $fragetext[$k];
}
$pdf->MultiCell($ks[0], 5, utf8_encode($fragetextneu[$k]), 'LRT', 'L', 0, 0, '', '', true);
//Zweite Spalte mit Selbsteinschaetzung der Schueler
$selbst = mysql_fetch_assoc(mysql_query("SELECT * FROM {$klst} WHERE uid = '" . $uid[$i] . "' "));