本文整理汇总了PHP中PDF::Rect方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::Rect方法的具体用法?PHP PDF::Rect怎么用?PHP PDF::Rect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::Rect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strftime
}
$pdf->Cell(135, 6, ' ' . $sede, 1, 1);
$pdf->Cell(40, 6, 'Periodo ', 1, 0, 'R', 1);
$pdf->Cell(135, 6, ' da ' . strftime('%d/%m/%Y', strtotime($row['STA_DataInizio'])) . ' a ' . strftime('%d/%m/%Y', strtotime($row['STA_DataFine'])), 1, 1);
$pdf->Cell(40, 6, 'Orario ', 1, 0, 'R', 1);
$pdf->Cell(135, 6, ' ' . utf8_decode($row['STA_Orario']), 1, 1);
$pdf->Cell(40, 6, 'Tutor aziendale ', 1, 0, 'R', 1);
$pdf->Cell(135, 6, ' ' . utf8_decode($row['PAZ_Titolo']) . ' ' . utf8_decode($row['PAZ_Nome']), 1, 1);
$pdf->Cell(40, 6, 'Tutor scolastico ', 1, 0, 'R', 1);
$pdf->Cell(135, 6, ' prof. ' . utf8_decode($row['TUT_Nome']) . ' ' . utf8_decode($row['TUT_Cognome']), 1, 1);
$pdf->Ln(3);
$pdf->SetFont('abac', '', 11);
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->Cell(30, 10, 'Data', 1, 0, 'C', 1);
$pdf->Rect($x + 30, $y, 74, 10);
$pdf->Cell(74, 5, "Firma mattino", 0, 0, 'C');
$pdf->Cell(74, 5, "Firma pomeriggio", 0, 1, 'C');
$pdf->Cell(30);
$pdf->SetFont('abalc', '', 10);
$pdf->Rect($x + 104, $y, 74, 10);
$pdf->Cell(74, 5, "(dalle ore ............... alle ore ...............)", 0, 0, 'C');
$pdf->Cell(74, 5, "(dalle ore ............... alle ore ...............)", 0, 1, 'C');
$pdf->SetFont('abac', '', 12);
$pdf->Cell(30, 7, '', 1, 0, 'R');
$pdf->Cell(74, 7, '', 1, 0, 'R');
$pdf->Cell(74, 7, '', 1, 1, 'R');
$pdf->Cell(30, 7, '', 1, 0, 'R');
$pdf->Cell(74, 7, '', 1, 0, 'R');
$pdf->Cell(74, 7, '', 1, 1, 'R');
$pdf->Cell(30, 7, '', 1, 0, 'R');
示例2:
/**
* Affiche la grille des lignes de factures
*
* @param PDF $pdf Object PDF
* @param int $tab_top Tab top
* @param int $tab_height Tab height
* @param int $nexY next y
* @param Translate $outputlangs Output langs
* @return void
*/
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{
global $conf;
$default_font_size = pdf_getPDFFontSize($outputlangs);
// Amount in (at tab_top - 1)
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('', '', $default_font_size - 2);
$titre = $outputlangs->transnoentities("AmountInCurrency", $outputlangs->transnoentitiesnoconv("Currency" . $conf->currency));
$pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 4), $tab_top - 4);
$pdf->MultiCell($pdf->GetStringWidth($titre) + 3, 2, $titre);
$pdf->SetDrawColor(128, 128, 128);
// Rect prend une longueur en 3eme param
$pdf->Rect($this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height);
// line prend une position y en 3eme param
$pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5);
$pdf->SetFont('', '', 8);
// Accountancy piece
$pdf->SetXY($this->posxpiece - 1, $tab_top + 1);
$pdf->MultiCell($this->posxdesc - $this->posxpiece - 1, 1, '', '', 'R');
// Comments
$pdf->line($this->posxdesc - 1, $tab_top, $this->posxdesc - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxdesc - 1, $tab_top + 1);
$pdf->MultiCell($this->posxdate - $this->posxdesc - 1, 1, $outputlangs->transnoentities("Description"), '', 'L');
// Date
$pdf->line($this->posxdate - 1, $tab_top, $this->posxdate - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxdate - 1, $tab_top + 1);
$pdf->MultiCell($this->posxtype - $this->posxdate - 1, 2, $outputlangs->transnoentities("Date"), '', 'C');
// Type
$pdf->line($this->posxtype - 1, $tab_top, $this->posxtype - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxtype - 1, $tab_top + 1);
$pdf->MultiCell($this->posxprojet - $this->posxtype - 1, 2, $outputlangs->transnoentities("Type"), '', 'C');
// Project
$pdf->line($this->posxprojet - 1, $tab_top, $this->posxprojet - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxprojet - 1, $tab_top + 1);
$pdf->MultiCell($this->posxtva - $this->posxprojet - 1, 2, $outputlangs->transnoentities("Project"), '', 'C');
// VAT
if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) {
$pdf->line($this->posxtva - 1, $tab_top, $this->posxtva - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxtva - 1, $tab_top + 1);
$pdf->MultiCell($this->posxup - $this->posxtva - 1, 2, $outputlangs->transnoentities("VAT"), '', 'C');
}
// Unit price
$pdf->line($this->posxup - 1, $tab_top, $this->posxup - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxup - 1, $tab_top + 1);
$pdf->MultiCell($this->posxqty - $this->posxup - 1, 2, $outputlangs->transnoentities("PriceU"), '', 'C');
// Quantity
$pdf->line($this->posxqty - 1, $tab_top, $this->posxqty - 1, $tab_top + $tab_height);
$pdf->SetXY($this->posxqty - 1, $tab_top + 1);
$pdf->MultiCell($this->postotalttc - $this->posxqty, 2, $outputlangs->transnoentities("Qty"), '', 'R');
// Total with all taxes
$pdf->line($this->postotalttc, $tab_top, $this->postotalttc, $tab_top + $tab_height);
$pdf->SetXY($this->postotalttc - 1, $tab_top + 1);
$pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->postotalttc, 2, $outputlangs->transnoentities("TotalTTC"), '', 'R');
$pdf->SetTextColor(0, 0, 0);
}
示例3: date
}
//Order Counter
$order_counter++;
//DRAW BARCODE
//$pdf->OrderBarcode($barcode_nr, 160, 12, 35);
//START DRAWING INVOICE
//Invoice Header
$header_text = 'Rechnung für das Monatspaket – ' . $german_month[date('n', $order_date)] . ' ' . date('Y', $order_date);
//Shipping Address
$boxpos1x = $margin + 1;
$boxpos2x = 80;
$boxpos_y = 23;
$address_height_used = $order['customer_billing_address2'] != '' ? $address_height2 : $address_height;
$pdf->setFont('Arial', '', '10');
$pdf->SetDrawColor($gray, $gray, $gray);
$pdf->Rect($boxpos1x, $boxpos_y, $address_width, $address_height_used);
if ($print_address_note) {
$pdf->Rect($boxpos2x, $boxpos_y, $address_width, $address_height_used);
}
$box1x = $boxpos1x + 2;
$box2x = $boxpos2x + 2;
$box_y = $boxpos_y + 4;
$ypos = $box_y;
$pdf->SetXY($box1x, $ypos);
$pdf->SetTextColor($gray, $gray, $gray);
$pdf->Cell($address_width, 4, 'Bestellt von:');
$ypos += 6;
$pdf->SetXY($box1x, $ypos);
$pdf->setFont('Arial', 'B', '10');
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell($address_width, 4, "{$order['customer_billing_title']} {$order['customer_billing_firstname']} {$order['customer_billing_lastname']}");
示例4: while
$q3 = mysql_query("select * from grade_history where grade_history_quarter = '{$reportid}' and grade_history_student='{$studentid}'");
while ($r3 = mysql_fetch_array($q3)) {
$q25 = mysql_query("select * from grade_subjects where grade_subject_id = {$r3['grade_history_subject']}");
$r25 = mysql_fetch_array($q25);
$info[0] = $r25['grade_subject_desc'];
$q4 = mysql_query("select * from web_users where web_users_id = {$r3['grade_history_user']}");
$r4 = mysql_fetch_array($q4);
$info[1] = $r4['web_users_flname'];
$info[2] = $r3['grade_history_grade'];
$info[3] = $r3['grade_history_effort'];
$info[4] = $r3['grade_history_conduct'];
$info[5] = $r3['grade_history_notes'];
$pdf->Row($info);
}
$pdf->SetLineWidth(2);
$pdf->Rect(25, 25, 245, 130, '');
if ($reportid > 1) {
$pdf->AddPage();
$pdf->SetFont('Times', 'IB', 16);
$pdf->Write(1, $school);
$pdf->SetFont('Times', '', 14);
$pdf->Ln();
$pdf->SetXY(30, 50);
$pdf->Write(1, $name);
$pdf->Ln();
$pdf->SetXY(30, 55);
$pdf->Write(1, $address1);
$pdf->Ln();
if (!empty($address2)) {
$pdf->SetXY(30, 60);
$pdf->Write(1, $address2);
示例5: COUNT
}
$query = "SELECT COUNT( risk ) AS count, risk, hostIP, ctx FROM \n (SELECT DISTINCT t1.hostIP, HEX(t1.ctx) AS ctx, t1.risk, t1.port, t1.protocol, t1.app, t1.scriptid, t1.msg\n FROM vuln_nessus_results t1\n WHERE report_id in ({$report_id})\n AND t1.falsepositive<>'Y'\n ) as t GROUP BY risk";
$ecount = 0;
$result = $dbconn->Execute($query);
$index = 0;
$pdf->Ln();
$total_number1 = _("Total number of vulnerabilities identified on ") . " " . sizeof($hosts) . _(" system(s)");
if ($chinese) {
$total_number1 = mb_convert_encoding($total_number1, 'UTF-8', 'HTML-ENTITIES');
$pdf->SetFont('GB', 'B', 12);
} else {
$total_number1 = mb_convert_encoding($total_number1, 'ISO-8859-1', 'HTML-ENTITIES');
$pdf->SetFont('Helvetica', 'B', 12);
}
$pdf->Cell(0, 6, $total_number1, 0, 1, 'C');
$pdf->Rect(10, 43, 190, 54);
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
$Eriskcount = 0;
$riskArray = array();
$colorarray = array();
while (list($riskcount, $risk, $hostIP, $ctx) = $result->fields) {
if ($ecount > 0) {
$Eriskcount += $ecount;
$riskcount -= $ecount;
}
$riskArray[getrisk($risk)] = $riskcount;
$colorarray[$index] = getriskcolor($risk);
$index++;
$result->MoveNext();
}
示例6: Footer
class PDF extends FPDF
{
function Footer()
{
$this->SetY(-10);
$this->SetX(5);
$this->SetFont('helvetica', 'I', 5);
$this->Cell(48, 5, utf8_decode("Fecha Impresión " . Date::today()), 0, 0, 'L');
$this->Cell(48, 5, utf8_decode('Página') . $this->PageNo() . '/{nb}', 0, 0, 'R');
}
}
$pdf = new PDF('P', 'mm', array(105, 148));
$pdf->AliasNbPages();
for ($i = 0; $i < 2; $i++) {
$pdf->AddPage();
$pdf->Rect(10, 10, 85, 128);
$pdf->Line(10, 20, 95, 20);
$pdf->Line(10, 30, 95, 30);
$pdf->SetFont('helvetica', 'B', 7);
$pdf->SetFillColor(120, 120, 120);
$pdf->SetTextColor(255, 255, 255);
$pdf->SetX(10);
$pdf->SetY(10);
$pdf->Cell(85, 10, utf8_decode($this->planillaDataDet[0]['id_personal'] . " - " . $this->planillaDataDet[0]['nombre_personal']), 1, 0, 'C', true);
$pdf->Ln(13);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(15, 5, utf8_decode('BOLETA INFORMATIVA DETALLE'), 0, 0, 'L');
$pdf->Ln(10);
$pdf->Cell(65, 5, utf8_decode('Básico ' . $this->planillaDataDet[0]['nom_planilla'] . ' ( ' . $this->planillaDataDet[0]['periodo'] . ' )'), 0, 0, 'L');
$pdf->Cell(20, 5, utf8_decode($this->planillaDataDet[0]['neto_total'] + $this->planillaDataDet[0]['monto_asig_familiar'] + $this->planillaDataDet[0]['otros_descuentos']), 0, 0, 'R');
$pdf->Ln(5);
示例7:
/**
* Show table for lines
*
* @param PDF $pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @param int $hidetop Hide top bar of array
* @param int $hidebottom Hide bottom bar of array
* @return void
*/
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
{
global $langs;
$default_font_size = pdf_getPDFFontSize($outputlangs);
$langs->load("main");
$langs->load("bills");
if (empty($hidetop)) {
$pdf->SetFont('', 'B', $default_font_size - 2);
$pdf->SetXY(10, $tab_top);
$pdf->MultiCell(10, 5, "LS", 0, 'C', 1);
$pdf->line(20, $tab_top, 20, $tab_top + $tab_height);
$pdf->SetXY(20, $tab_top);
$pdf->MultiCell(10, 5, "LR", 0, 'C', 1);
$pdf->line(30, $tab_top, 30, $tab_top + $tab_height);
$pdf->SetXY(30, $tab_top);
$pdf->MultiCell(20, 5, $outputlangs->transnoentities("Ref"), 0, 'C', 1);
$pdf->SetXY(50, $tab_top);
$pdf->MultiCell(90, 5, $outputlangs->transnoentities("Description"), 0, 'L', 1);
$pdf->SetXY(140, $tab_top);
$pdf->MultiCell(30, 5, $outputlangs->transnoentities("QtyOrdered"), 0, 'C', 1);
$pdf->SetXY(170, $tab_top);
$pdf->MultiCell(30, 5, $outputlangs->transnoentities("QtyToShip"), 0, 'C', 1);
}
$pdf->Rect(10, $tab_top, 190, $tab_height);
}
示例8: PDF
if (strpos($angle, '1') === false) {
$this->_out(sprintf('%.2f %.2f l', $x * $k, ($hp - $y) * $k));
$this->_out(sprintf('%.2f %.2f l', ($x + $r) * $k, ($hp - $y) * $k));
}
//else
//$this->_Arc($xc - $r, $yc - $r*$MyArc, $xc - $r*$MyArc, $yc - $r, $xc, $yc - $r);
$this->_out($op);
}
function _Arc($x1, $y1, $x2, $y2, $x3, $y3)
{
$h = $this->h;
$this->_out(sprintf('%.2f %.2f %.2f %.2f %.2f %.2f c ', $x1 * $this->k, ($h - $y1) * $this->k, $x2 * $this->k, ($h - $y2) * $this->k, $x3 * $this->k, ($h - $y3) * $this->k));
}
}
/*$pdf=new PDF();
$pdf->Open();
$pdf->AddPage();
$pdf->SetDrawColor(200);
$pdf->DashedRect(40,10,165,40);
$pdf->SetFont('Arial','B',30);
$pdf->SetXY(40,10);
$pdf->Cell(125,30,'Enjoy dashes!',0,0,'C',0);
$pdf->Output();*/
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
$pdf->SetDrawColor(0);
$pdf->SetFillColor(192);
//$pdf->RoundedRect(60, 30, 68, 46, 5, 'DF', '13');
$pdf->Rect(50, 50, 10, 10, 'FD');
$pdf->Output();
示例9: constructPIContent
//.........这里部分代码省略.........
$pue_counter = 0;
}
}
}
$YPOS += 5 + 3 + $pue_rows * $colheight;
}
//PRODUCT INFORMATION
if ($pue_rows > 9) {
$pdf->AddPage();
$item_page_count++;
$YPOS = $margin;
}
$lineheight = 4;
$imgbig_width = 60;
$imgsml_width = 25;
$rowpos = $YPOS;
$colpos = $margin + 1;
$pdf->SetXY($margin, $YPOS);
$pdf->setFont('Arial', 'B', $fontsize_big);
$pdf->Cell(100, $lineheight, 'Product Information');
$YPOS += $lineheight + 1;
$rowpos = $YPOS;
$imgbig = $this->getImageForPDF($p['p']['products_image'], '', '212');
//if($imgbig!='') $pdf->Image($imgbig, $colpos, $rowpos, $imgbig_width);
if ($imgbig != '') {
$colposmainimage = $colpos;
$image_metadata = getimagesize($imgbig);
//MAKE IMAGE CENTERED WHEN SIZE IS PORTRAIT
if ($image_metadata[0] == 147) {
$colposmainimage = $colpos + 9;
}
$pdf->Image($imgbig, $colposmainimage, $rowpos, 0, $imgbig_width);
}
$pdf->Rect($colpos, $rowpos, $imgbig_width, $imgbig_width);
$rowpos_main_image = $YPOS + $imgbig_width + 2;
$rowpos = $YPOS;
$img_h_resized = 0;
//SHOW LOGO DIAMORE AND ELLI PREMIUM FOR NON OTTO B2B ORDERS
if ($i['products_id'] > 0 && ($is_diamore || $is_elli_premium)) {
$pb = $class_pb->retrieveDetail($p['p']['products_brand_id']);
$img_path = DIR_WS_IMAGES . $pb['brand_image'];
$imgsize = getimagesize($img_path);
$img_w = $imgsize[0];
$img_h = $imgsize[1];
$h_ratio = $img_h / $img_w;
$img_w_resized = 50;
$img_h_resized = $img_w_resized * $h_ratio;
$pdf->Image($img_path, 150, $YPOS, $img_w_resized, $img_h_resized);
}
/*USE IMAGE DIAMOND
if($class_pm->productContainMaterials($i['products_id'], 52)) {
$img_path = FPDF_IMGPATH.'diamond.jpg';
$imgsize = getimagesize($img_path);
$img_w = $imgsize[0];
$img_h = $imgsize[1];
$h_ratio = $img_h/$img_w;
$img_w_resized = 40;
$img_h_resized = $img_w_resized * $h_ratio;
$pdf->Image($img_path,165,$YPOS,$img_w_resized,$img_h_resized);
}
*/
if ($is_gold_product) {
$lineheight = 6;
$leftpos = 150;
$rowpos = $YPOS + $img_h_resized + 2;
$pdf->SetFontSize($fontsize_big + 5);
示例10: Header
$this->widths = $w;
}
function Header()
{
$this->AddFont('Amble-Regular', '', 'Amble-Regular.php');
$this->SetFont('Amble-Regular', '', 10);
}
}
$pdf = new PDF('P', 'mm', 'a4');
$pdf->AddPage();
$pdf->SetMargins(10, 0, 0, 0);
$pdf->AliasNbPages();
$pdf->SetAutoPageBreak(true, 10);
$pdf->AddFont('Amble-Regular', '', 'Amble-Regular.php');
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->Rect(25, 25, 165, 40, 'D');
////3 INFO TRIBUTARIA
$pdf->SetY(33);
$pdf->SetX(85);
$pdf->multiCell(180, 6, utf8_decode('SERVICIO RENTAS INTERNAS'), 0);
//NOMBRE cliente
$pdf->Text(60, 45, utf8_decode('RUC: '));
//ruc cliente
$pdf->Text(42, 50, utf8_decode('RAZON SOCIAL: '));
//ruc cliente
$pdf->Text(48, 55, utf8_decode('IMPUESTOL: '));
//ruc cliente
$pdf->Text(40, 60, utf8_decode('PERIODO FISCAL: '));
//ruc cliente
$pdf->Rect(25, 65, 165, 10, 'D');
////3 INFO TRIBUTARIA
示例11:
/**
* Show top header of page.
*
* @param PDF $pdf Object PDF
* @param Translate $outputlangs Object lang for output
* @param int $pagenb Page nb
* @return void
*/
function _pagehead(&$pdf, $outputlangs, $pagenb)
{
global $conf, $langs;
// Do not add the BACKGROUND as this is a report
//pdf_pagehead($pdf,$outputlangs,$this->page_hauteur);
// New page
$pdf->AddPage();
// Show title
$pdf->SetFont('', 'B', 10);
$pdf->SetXY($this->marge_gauche, $this->marge_haute);
$pdf->MultiCell(120, 1, $outputlangs->convToOutputCharset($this->title), 0, 'L', 0);
// Show page nb only on iso languages (so default Helvetica font)
if (pdf_getPDFFont($outputlangs) == 'Helvetica') {
$pdf->SetXY($this->page_largeur - $this->marge_droite - 40, $this->marge_haute);
$pdf->MultiCell(40, 1, $pagenb . '/' . $pdf->getAliasNbPages(), 0, 'R', 0);
}
$y = $pdf->GetY() + 2;
$pdf->Rect($this->marge_gauche, $y, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $this->page_hauteur - $this->marge_haute - $this->marge_basse);
$y = $pdf->GetY() + 1;
return $y;
}
示例12: getHeader
getHeader();
$ystart += 9;
}
// $pdf->Write(5,$pdf->GetY());
$xstart = $leftmargin;
if ($i % 2 != 0) {
$sred = $redfill0;
$sgreen = $greenfill0;
$sblue = $bluefill0;
} else {
$sred = $redfill1;
$sgreen = $greenfill1;
$sblue = $bluefill1;
}
$pdf->SetFillColor($sred, $sgreen, $sblue);
$pdf->Rect($xstart, $ystart, 50, 9, 'DF');
$pdf->SetY($ystart + 2);
$pdf->SetX($xstart);
$pdf->Write(4, $rooms[$i][name]);
$xstart += 50;
for ($j = 0; $j < count($roomcal[$i]); $j++) {
if ($view == 'type') {
$red = hexdec(substr($roomcal[$i][$j][bookingtypecolor], 1, 2));
$green = hexdec(substr($roomcal[$i][$j][bookingtypecolor], 3, 2));
$blue = hexdec(substr($roomcal[$i][$j][bookingtypecolor], 5, 2));
} else {
$red = hexdec(substr($roomcal[$i][$j][color], 1, 2));
$green = hexdec(substr($roomcal[$i][$j][color], 3, 2));
$blue = hexdec(substr($roomcal[$i][$j][color], 5, 2));
}
if (count($roomcal[$i][$j]) > 0) {
示例13:
/**
* Show table for lines
*
* @param PDF $pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @param int $hidetop Hide top bar of array
* @param int $hidebottom Hide bottom bar of array
* @return void
*/
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
{
global $conf, $mysoc;
$default_font_size = pdf_getPDFFontSize($outputlangs);
$pdf->SetDrawColor(128, 128, 128);
// Rect prend une longueur en 3eme param
$pdf->Rect($this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height);
// line prend une position y en 3eme param
$pdf->line($this->marge_gauche, $tab_top + 6, $this->page_largeur - $this->marge_droite, $tab_top + 6);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('', '', $default_font_size);
$pdf->SetXY($this->posxref - 1, $tab_top + 2);
$pdf->MultiCell(80, 2, $outputlangs->transnoentities("Tasks"), '', 'L');
}
示例14:
$pdf->AliasNbPages();
$pdf->SetMargins(15.202, 6.088, 15.202);
$pdf->SetAutoPageBreak(true, 6.088);
$pdf->AddFont('Bodoni MT', 'B', 'bod_b.php');
$pdf->AddFont('Arial', '', 'arial.php');
$pdf->AddFont('Arial', 'B', 'arialbd.php');
$hoy = date_create();
$pdf->AddPage();
//TALMET
$x = 15.175;
$y = 297 - 283.295;
$border = $x - 14.32;
$height = 58.779;
$width = 180.656;
$pdf->SetFillColor(0, 0, 128);
$pdf->Rect($x - $border, $y - $border, $width + 2 * $border, $height + 2 * $border, 'F');
$pdf->Image('../images/pdf/talmet.jpg', $x, $y, $width, $height);
//FONTANERO
$pdf->Image('../images/pdf/fontanero.jpg', 53.734, 297 - 201.132, 97.852);
//FERE
$x = 17.141;
$y = 297 - 66.26000000000001;
$height = 19.707;
$width = 48.605;
$pdf->SetFillColor(0);
$pdf->Rect($x - $border, $y - $border, $width + 2 * $border, $height + 2 * $border, 'F');
$pdf->Image('../images/pdf/fere.jpg', $x, $y, $width, $height);
//CLIUS
$x = 80.06699999999999;
$pdf->SetFillColor(255, 0, 0);
$pdf->Rect($x - $border, $y - $border, $width + 2 * $border, $height + 2 * $border, 'F');
示例15: array
$oi_printed_sp = array();
//CREATE ENVELOPE
// echo "<pre>";var_dump($orders);die();
foreach ($orders as $po) {
$firstorder = true;
$pdf->AddPage();
$pdf->current_page = 0;
$margin_env = $margin + 10;
$boxes_tab_env = $boxes_tab + 15;
$ypos = $margin + 10;
$ev_width = 170;
$ev_height = 170;
$dash_style = array('width' => 0.1, 'dash' => '2, 2');
$solid_style = array('width' => 0.2, 'dash' => 0);
$solid_style_med = array('width' => 0.4, 'dash' => 0);
$pdf->Rect($margin_env, $ypos, $ev_width, $ev_height, 'D', array('all' => $dash_style));
$pdf->setXY($margin_env + 10, $ypos + 5);
$pdf->setFont('Arial', '', '12');
//FILL JNG ADDRESS HEADER
$jng_from = "JULIE & GRACE ({$sp_detail['jng_id']})";
$hamburg_office_address = "{$jng_from}\n";
$hamburg_office_address .= JNG_ADDRESS_STREET . "\n";
$hamburg_office_address .= JNG_ADDRESS_ZIPCODE . " " . JNG_ADDRESS_CITY . "\n";
$hamburg_office_address .= JNG_ADDRESS_COUNTRY;
$pdf->MultiCell(100, $lineheight, $hamburg_office_address);
$ypos = +30;
$pdf->Line($boxes_tab_env, $ypos, 80, $ypos, $solid_style);
$ypos += $lineheight;
$pdf->Line($boxes_tab_env, $ypos, 80, $ypos);
$ypos += $lineheight;
$pdf->Line($boxes_tab_env, $ypos, 80, $ypos);