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


PHP FPDF::SetX方法代码示例

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


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

示例1: post_id_upc_terms_handler

 public function post_id_upc_terms_handler()
 {
     $this->id = preg_split('/[^\\d]/', $this->id, 0, PREG_SPLIT_NO_EMPTY);
     $pdf = new FPDF('P', 'mm', 'Letter');
     $pdf->SetMargins(6.35, 6.35, 6.35);
     // quarter-inch margins
     $pdf->SetAutoPageBreak(false);
     $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     $pdf->AddFont('Gill', 'B', 'GillSansMTPro-Heavy.php');
     $margins = $pdf->GetMargins();
     $margins['top'] = 0.0;
     $check_left_x = $margins['left'] > 3.175 ? $margins['right'] : 3.175 - $margins['left'];
     $real_check_top_y = 183.675 - $margins['top'];
     $check_right_x = 203.2 - $margins['left'];
     $real_check_bottom_y = 255.112 - $margins['top'];
     $line_height = 5;
     $envelope_window_tab = 15;
     $right_col1 = 130;
     $right_col2 = 170;
     $my_address = array('610 E 4th St', 'Duluth, MN 55805', 'Tel: 218.728.0884', 'www.wholefoods.coop');
     $check_date = date('F j, Y');
     $dbc = $this->connection;
     $dbc->setDefaultDB($this->config->get('OP_DB'));
     $signage = new COREPOS\Fannie\API\item\FannieSignage(array());
     foreach ($this->id as $card_no) {
         $pdf->AddPage();
         $account = \COREPOS\Fannie\API\member\MemberREST::get($card_no);
         $primary = array();
         foreach ($account['customers'] as $c) {
             if ($c['accountHolder']) {
                 $primary = $c;
                 break;
             }
         }
         $check_number = rand(100000, 999995);
         for ($i = 0; $i < 3; $i++) {
             $pdf->SetFont('Gill', '', 10);
             $check_top_y = $real_check_top_y - $i * 90;
             $check_bottom_y = $real_check_bottom_y - $i * 90;
             $pdf->SetXY($check_left_x, $check_top_y);
             $pdf->Ln($line_height * 4.25);
             foreach ($my_address as $line) {
                 $pdf->SetX($check_left_x + $envelope_window_tab + 20);
                 if ($line == 'www.wholefoods.coop') {
                     $pdf->SetFont('Gill', 'B', 9);
                 }
                 $pdf->Cell(0, $line_height, $line, 0, 1);
             }
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y);
             $pdf->Cell(30, $line_height, 'Check Number:', 0, 0, 'R');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->SetX($check_left_x + $right_col2);
             $pdf->Cell(30, $line_height, $check_number, 0, 0, 'R');
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y + 1.5 * $line_height);
             $pdf->Cell(30, $line_height, 'Date:', 0, 0, 'R');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->SetX($check_left_x + $right_col2);
             $pdf->Cell(30, $line_height, $check_date, 0, 0, 'R');
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y + 3 * $line_height);
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->Cell(30, $line_height, 'Amount:', 0, 0, 'R');
             $pdf->SetXY($check_left_x + $right_col1 + 30, $check_top_y + 3 * $line_height);
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->MultiCell(40, $line_height, str_repeat(' ', 2) . $this->terms, 0, 'R');
             $pdf->SetTextColor(0, 0, 0);
             $their_address = array($primary['firstName'] . ' ' . $primary['lastName']);
             $their_address[] = $account['addressFirstLine'];
             if ($account['addressSecondLine']) {
                 $their_address[] = $account['addressSecondLine'];
             }
             $their_address[] = $account['city'] . ', ' . $account['state'] . ' ' . $account['zip'];
             $pdf->SetXY($check_left_x + $envelope_window_tab, $check_top_y + 11 * $line_height);
             $pdf->SetFont('Gill', 'B', 10);
             foreach ($their_address as $line) {
                 $pdf->SetX($check_left_x + $envelope_window_tab);
                 $pdf->Cell(0, $line_height, $line, 0, 1);
             }
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetXY($check_left_x, $check_bottom_y + $line_height - 1);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->Cell(0, $line_height, 'Redeemable only at Whole Foods Co-op', 0, 0, 'C');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetXY($check_left_x + 145, $check_top_y + 6 * $line_height + 1);
             $pdf->SetFont('Gill', '', 8);
             $pdf->MultiCell(50, $line_height - 2, 'Limit one per day. Cannot be applied to previous purchases. No cash value.');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetFillColor(0xcc, 0xcc, 0xcc);
             $pdf->Rect($check_left_x + 84, $check_top_y + 28, 39, 15, 'F');
             $pdf->SetFillColor(0, 0, 0);
             $signage->drawBarcode(ltrim($this->upc, '0'), $pdf, $check_left_x + 87, $check_top_y + 30, array('height' => 11, 'fontsize' => 0));
             $pdf->Image('logo.rgb.noalpha.png', $check_left_x + $envelope_window_tab, $check_top_y + 20, 20);
             $pdf->SetFont('Gill', 'B', '31');
//.........这里部分代码省略.........
开发者ID:phpsmith,项目名称:IS4C,代码行数:101,代码来源:CheckCouponMailing.php

示例2: drawPDF

 public function drawPDF()
 {
     $pdf = new \FPDF('L', 'mm', 'Letter');
     $pdf->SetMargins(3.175, 3.175, 3.175);
     $pdf->SetAutoPageBreak(false);
     if (\COREPOS\Fannie\API\FanniePlugin::isEnabled('CoopDealsSigns')) {
         $this->font = 'Gill';
         $this->alt_font = 'GillBook';
         define('FPDF_FONTPATH', dirname(__FILE__) . '/../../../modules/plugins2.0/CoopDealsSigns/noauto/fonts/');
         $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     }
     $pdf->SetFont($this->font, '', 16);
     $data = $this->loadItems();
     $width = 136.52;
     $height = 105;
     $top = 90;
     $left = 15;
     $effective_width = $width - 2 * $left;
     foreach ($data as $item) {
         $pdf->AddPage();
         $column = 1;
         // right aligned
         $price = $this->printablePrice($item);
         $pdf->SetXY($left + $width * $column, $top);
         $pdf->SetFontSize($this->SMALL_FONT);
         $pdf->Cell($effective_width, 10, $item['brand'], 0, 1, 'C');
         $pdf->SetX($left + $width * $column);
         $pdf->SetFontSize($this->MED_FONT);
         $pdf->MultiCell($effective_width, 12, $item['description'], 0, 'C');
         $pdf->SetX($left + $width * $column);
         $pdf->SetFontSize($this->BIG_FONT);
         $pdf->Cell($effective_width, 25, $price, 0, 1, 'C');
         $y_pos = $pdf->GetY();
         if ($item['startDate'] != '' && $item['endDate'] != '') {
             // intl would be nice
             $datestr = $this->getDateString($item['startDate'], $item['endDate']);
             $pdf->SetXY($left + $width * $column, $top + ($height - 40));
             $pdf->SetFontSize($this->SMALL_FONT);
             $pdf->Cell($effective_width, 20, $datestr, 0, 1, 'R');
         }
         if ($item['originName'] != '') {
             $pdf->SetXY($left + $width * $column, $y_pos);
             $pdf->SetFontSize($this->SMALL_FONT);
             if (strlen($item['originName']) < 50) {
                 $pdf->Cell($effective_width, 20, $item['originName'], 0, 1, 'L');
             } else {
                 $pdf->Cell($effective_width, 20, $item['originShortName'], 0, 1, 'L');
             }
         }
     }
     $pdf->Output('WfcProdSingle.pdf', 'I');
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:52,代码来源:WfcProduceSingle.php

示例3: save


//.........这里部分代码省略.........
						$borders .= 'T';
						$pdf->SetDrawColor(
							hexdec(substr($style->getBorders()->getTop()->getColor()->getRGB(), 0, 2)),
							hexdec(substr($style->getBorders()->getTop()->getColor()->getRGB(), 2, 2)),
							hexdec(substr($style->getBorders()->getTop()->getColor()->getRGB(), 4, 2))
						);
					}
	    			if ($style->getBorders()->getBottom()->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) {
						$borders .= 'B';
						$pdf->SetDrawColor(
							hexdec(substr($style->getBorders()->getBottom()->getColor()->getRGB(), 0, 2)),
							hexdec(substr($style->getBorders()->getBottom()->getColor()->getRGB(), 2, 2)),
							hexdec(substr($style->getBorders()->getBottom()->getColor()->getRGB(), 4, 2))
						);
					}
					if ($borders == '') {
						$borders = 0;
					}
					if ($sheet->getShowGridlines()) {
						$borders = 'LTRB';
					}

	    			// Image?
			    	$iterator = $sheet->getDrawingCollection()->getIterator();
			    	while ($iterator->valid()) {
			    		if ($iterator->current()->getCoordinates() == PHPExcel_Cell::stringFromColumnIndex($column) . ($row + 1)) {
			    			try {
				    			$pdf->Image(
				    				$iterator->current()->getPath(),
				    				$pdf->GetX(),
				    				$pdf->GetY(),
				    				$iterator->current()->getWidth(),
				    				$iterator->current()->getHeight(),
				    				'',
				    				$this->_tempDir
				    			);
			    			} catch (Exception $ex) { }
			    		}

			    		$iterator->next();
			    	}

	    			// Print cell
	    			$pdf->MultiCell(
	    				$cellWidth,
	    				$cellHeight,
	    				$cellData,
	    				$borders,
	    				$alignment,
	    				($style->getFill()->getFillType() == PHPExcel_Style_Fill::FILL_NONE ? 0 : 1)
	    			);

			    	// Coordinates
			    	$endX = $pdf->GetX();
			    	$endY = $pdf->GetY();

			    	// Revert to original Y location
			    	if ($endY > $startY) {
			    		$pdf->SetY($startY);
			    		if ($lineHeight < $lineHeight + ($endY - $startY)) {
			    			$lineHeight = $lineHeight + ($endY - $startY);
			    		}
			    	}
			    	$pdf->SetX($startX + $singleCellWidth);

			    	// Hyperlink?
			    	if ($sheet->getCellByColumnAndRow($column, $row)->hasHyperlink()) {
			    		if (!$sheet->getCellByColumnAndRow($column, $row)->getHyperlink()->isInternal()) {
			    			$pdf->Link(
			    				$startX,
			    				$startY,
			    				$endX - $startX,
			    				$endY - $startY,
			    				$sheet->getCellByColumnAndRow($column, $row)->getHyperlink()->getUrl()
			    			);
			    		}
			    	}
				}

				// Garbage collect!
				$sheet->garbageCollect();

				// Next line...
				$pdf->Ln($lineHeight);
	    	}
		}

		// Document info
		$pdf->SetTitle($this->_phpExcel->getProperties()->getTitle());
		$pdf->SetAuthor($this->_phpExcel->getProperties()->getCreator());
		$pdf->SetSubject($this->_phpExcel->getProperties()->getSubject());
		$pdf->SetKeywords($this->_phpExcel->getProperties()->getKeywords());
		$pdf->SetCreator($this->_phpExcel->getProperties()->getCreator());

		// Write to file
		fwrite($fileHandle, $pdf->output($pFilename, 'S'));

		// Close file
		fclose($fileHandle);
	}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:101,代码来源:PDF.php

示例4: post_id_handler

 public function post_id_handler()
 {
     if (!is_array($this->id)) {
         $this->id = array($this->id);
     }
     $today = date("F j, Y");
     $pdf = new FPDF('L', 'in', array(3.5, 5.0));
     $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     $primary = "";
     $pdf->SetAutoPageBreak(true, 0);
     $pdf->SetFont("Gill", "", 10);
     //Meat of the statement
     foreach ($this->id as $card_no) {
         $account = \COREPOS\Fannie\API\member\MemberREST::get($card_no);
         $pdf->AddPage();
         $pdf->SetXY(3.0, 1.45);
         foreach ($account['customers'] as $c) {
             if ($c['accountHolder']) {
                 $pdf->Cell(2, 0.25, $c['firstName'] . ' ' . $c['lastName'], "", 1, "L");
                 break;
             }
         }
         $pdf->SetX(3.0);
         $pdf->Cell(2, 0.25, $account['addressFirstLine'], "", 1, "L");
         if ($account['addressSecondLine']) {
             $pdf->SetX(3.0);
             $pdf->Cell(2, 0.25, $account['addressSecondLine'], "", 1, "L");
         }
         $pdf->SetX(3.0);
         $str = $account['city'] . ", " . $account['state'] . " " . $account['zip'];
         $pdf->Cell(2, 0.25, $str, "", 1, "L");
     }
     $pdf->Output('member postcards.pdf', 'D');
     return false;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:35,代码来源:StatementsPluginPostCards.php

示例5: array

 $CantNoContestan = $agenda->CantidadObservaciones($CodAl, $CodigosObservaciones);
 $CantNoContestan = array_shift($CantNoContestan);
 //Cantidad de Felicitaciones
 $Obser = array();
 $CodObser = $observaciones->CodObservaciones(7);
 foreach ($CodObser as $CodO) {
     $Obser[] = $CodO['CodObservacion'];
 }
 $CodigosObservaciones = implode(",", $Obser);
 $CantFelicitacion = $agenda->CantidadObservaciones($CodAl, $CodigosObservaciones);
 $CantFelicitacion = array_shift($CantFelicitacion);
 $Total = $CantObser['Cantidad'] + $CantFaltas['Cantidad'] + $CantAtrasos['Cantidad'] + $CantLicencias['Cantidad'] + $CantNotificacion['Cantidad'] + $CantNoContestan['Cantidad'] + $CantFelicitacion['Cantidad'];
 /********************FIN DE AGENDA****************/
 $pdf->SetXY(15, 160);
 $pdf->Cell(150, 5, utf8_decode($idioma["EstadisticaAgenda"] . ":"), 0, 1);
 $pdf->SetX(15);
 $pdf->Cell(30, 5, utf8_decode($idioma["Observaciones"]), 1, 0, "C");
 $pdf->Cell(15, 5, utf8_decode($idioma["Faltas"]), 1, 0, "C");
 $pdf->Cell(15, 5, utf8_decode($idioma["Atrasos"]), 1, 0, "C");
 $pdf->Cell(20, 5, utf8_decode($idioma["Licencias"]), 1, 0, "C");
 $pdf->Cell(35, 5, utf8_decode($idioma["NotificacionPadres"]), 1, 0, "C");
 $pdf->SetFont("Arial", "", 8);
 $pdf->Cell(25, 5, utf8_decode($idioma["NoRespondeTelf"]), 1, 0, "C");
 $pdf->SetFont("Arial", "", 11);
 $pdf->Cell(30, 5, utf8_decode($idioma["Felicitaciones"]), 1, 0, "C");
 $pdf->Cell(15, 5, utf8_decode($idioma["Total"]), 1, 0, "C");
 $pdf->Ln();
 $pdf->SetX(15);
 $pdf->Cell(30, 5, $CantObser['Cantidad'], 1, 0, "C");
 $pdf->Cell(15, 5, $CantFaltas['Cantidad'], 1, 0, "C");
 $pdf->Cell(15, 5, $CantAtrasos['Cantidad'], 1, 0, "C");
开发者ID:anthonycab15,项目名称:colegio,代码行数:31,代码来源:boletintrimestre.php

示例6: saca_iva

$conexion = mysql_connect("localhost", "omorales", "wolf3333");
$basedatos = "sima";
$pdf = new FPDF();
$pdf->AddPage();
function saca_iva($can, $por)
{
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$pdf->SetFont('Arial', '', 8);
//establece el nombre del paciente
$pdf->SetXY(30, 5);
$pdf->Cell(0, 0, $paciente, 0, 0, L);
$pdf->SetX(1);
//numero de paciente
$pdf->Cell(0, 0, $_GET['numeroE'], 0, 0, R);
//cambiar fecha
//$myrow1['fecha1']=cambia_a_normal($myrow1['fecha1']);
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
$pdf->Cell(0, 0, $fecha1, 0, 0, R);
//Imprimo con salto de pagina
$pdf->Ln(15);
//salto de linea
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(30, 7);
$pdf->Ln(15);
//salto de linea
$sSQL = "SELECT *\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE ='" . $_GET['numeroE'] . "' and nCuenta='" . $_GET['nCuenta'] . "' and\r\nnumeroConfirmacion='" . $_GET['numeroConfirmacion'] . "'\r\n\r\n\r\n ";
开发者ID:rusli-nasir,项目名称:hospitalPhp,代码行数:31,代码来源:imprimeCaja3.php

示例7: strtotime

// Infos du client calées à droite
$pdf->Text(120, 50, $tClient['nomClient'].' '.$tClient['prenomClient']);
$pdf->Text(120, 55, $tClient['adresseClient']);
$pdf->Text(120, 60, $tClient['cpClient'].' '.$tClient['villeClient']);

// Infos date
$pdf->Text(120, 80, 'Buire, le '.date("d-m-Y", strtotime($tCommande[0]['dateFacture'])));

/* --- Tableau détail commande --- */
// en-tête
$pdf->SetDrawColor(183); // couleur du fond
$pdf->SetFillColor(221); // couleur des filets
$pdf->SetTextColor(0); // couleur du texte
$pdf->SetY(100);
$pdf->SetX(20);
$pdf->Cell(80, 10, 'Description du produit', 1, 0, 'L', 1);
$pdf->SetX(100);
$pdf->Cell(20, 10, 'Quantité', 1, 0, 'C', 1);
$pdf->SetX(120);
$pdf->Cell(35, 10, 'Prix unitaire HT', 1, 0, 'C', 1);
$pdf->SetX(155);
$pdf->Cell(30, 10, 'Montant HT', 1, 0, 'C', 1);
$pdf->Ln(); // retour à la ligne

// détail commande
$positionLigne = 110;
$totalHT = 0;

foreach ($tDetailCommande as $detailCommande) {
	$totalHT += $detailCommande['qteProduit'] * $detailCommande['prixUnitaire'];
开发者ID:Ophois,项目名称:webforce3,代码行数:30,代码来源:facture.php

示例8:

    $column_code9 = $column_code9 . $row9 . "\n";
    $column_code10 = $column_code10 . $row10 . "\n";
    $column_code11 = $column_code11 . $row11 . "\n";
    $column_code12 = $column_code12 . $row12 . "\n";
    $number_of_rows = $number_of_rows + 1;
}
$pdf->SetLineWidth(2);
$pdf->Line(0, 45, 360, 45);
$pdf->SetLineWidth(0);
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(35, 5, 'NAME OF BUSINESS' . $number_of_rows, 1, 0, 'C');
$pdf->SetX(40);
$pdf->Cell(20, 5, 'PERMIT NUMBER', 1, 0, 'C');
$pdf->SetX(60);
$pdf->Cell(60, 5, 'NAME OF OWNER', 1, 0, 'C');
$pdf->SetX(120);
$pdf->Cell(70, 5, 'BUSINESS ADDRESS', 1, 0, 'C');
$pdf->SetX(190);
$pdf->Cell(20, 5, '1ST QUARTER', 1, 0, 'C');
$pdf->SetX(210);
$pdf->Cell(15, 5, 'OR NUMBER', 1, 0, 'C');
$pdf->SetX(225);
$pdf->Cell(20, 5, '2ND QUARTER', 1, 0, 'C');
$pdf->SetX(245);
$pdf->Cell(15, 5, 'OR NUMBER', 1, 0, 'C');
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_bus_taxcoll_quart.php

示例9: FPDF

}
mysql_close();
//Create a new PDF file
$pdf = new FPDF();
$pdf->AddPage();
//Fields Name position
$Y_Fields_Name_position = 20;
//Table position, under Fields Name
$Y_Table_Position = 26;
//First create each Field Name
//Gray color filling each Field Name box
$pdf->SetFillColor(232, 232, 232);
//Bold Font for Field Name
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($Y_Fields_Name_position);
$pdf->SetX(45);
$pdf->Cell(30, 6, 'StudentID', 1, 0, 'L', 1);
$pdf->SetX(65);
$pdf->Ln();
//Now show the 3 columns
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(45);
$pdf->MultiCell(30, 6, $column_ID, 1);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(65);
//Create lines (boxes) for each ROW (Product)
//If you don't use the following code, you don't create the lines separating each row
$i = 0;
$pdf->SetY($Y_Table_Position);
while ($i < $number_of_products) {
开发者ID:swena,项目名称:E-Campus-Website,代码行数:31,代码来源:fpdfmysql.php

示例10:

    $column_code7 = $column_code7 . $row7 . "\n";
    $column_code8 = $column_code8 . $row8 . "\n";
    $column_code9 = $column_code9 . $row9 . "\n";
    $column_code10 = $column_code10 . $row10 . "\n";
    $column_code11 = $column_code11 . $row11 . "\n";
}
$pdf->SetLineWidth(2);
$pdf->Line(0, 45, 360, 45);
$pdf->SetLineWidth(0);
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(35, 5, 'NAME OF BUSINESS', 1, 0, 'C');
$pdf->SetX(40);
$pdf->Cell(20, 5, 'PERMIT NUMBER', 1, 0, 'C');
$pdf->SetX(60);
$pdf->Cell(60, 5, 'NAME OF OWNER', 1, 0, 'C');
$pdf->SetX(120);
$pdf->Cell(30, 5, 'BUSINESS NATURE', 1, 0, 'C');
$pdf->SetX(150);
$pdf->Cell(60, 5, 'BUSINESS ADDRESS', 1, 0, 'C');
$pdf->SetX(210);
$pdf->Cell(20, 5, '1ST QUARTER', 1, 0, 'C');
$pdf->SetX(230);
$pdf->Cell(15, 5, 'OR NUMBER', 1, 0, 'C');
$pdf->SetX(245);
$pdf->Cell(20, 5, '2ND QUARTER', 1, 0, 'C');
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_professional_tax.php

示例11:

     $pdf->Cell(125);
     $pdf->Cell(30, 10, 'DATA SURAT MASUK', 0, 0, 'C');
     $pdf->Ln();
     $pdf->Cell(125);
     $pdf->Cell(30, 10, 'KANTOR KESYAHBANDARAN TANJUNG PERAK SURABAYA', 0, 0, 'C');
     $pdf->Ln();
 }
 //Fields Name position
 $Y_Fields_Name_position = 30;
 //First create each Field Name
 //Gray color filling each Field Name box
 $pdf->SetFillColor(110, 180, 230);
 //Bold Font for Field Name
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->SetY($Y_Fields_Name_position);
 $pdf->SetX(5);
 $pdf->Cell(25, 8, 'No Agenda', 1, 0, 'C', 1);
 $pdf->SetX(30);
 $pdf->Cell(30, 8, 'Tanggal Agenda', 1, 0, 'C', 1);
 $pdf->SetX(60);
 $pdf->Cell(50, 8, 'No Surat', 1, 0, 'C', 1);
 $pdf->SetX(110);
 $pdf->Cell(25, 8, 'Tanggal Surat', 1, 0, 'C', 1);
 $pdf->SetX(135);
 $pdf->Cell(60, 8, 'Pengirim', 1, 0, 'C', 1);
 $pdf->SetX(195);
 $pdf->Cell(95, 8, 'Perihal', 1, 0, 'C', 1);
 $pdf->Ln();
 //Table position, under Fields Name
 $Y_Table_Position = 38;
 //Now show the columns
开发者ID:AhmadSayadi,项目名称:kearsipan,代码行数:31,代码来源:pdf_surat_masuk.php

示例12: concat

$pdf->Cell(190, 5, $getlgu[0], 0, 2, 'C');
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(190, 5, 'Office of the Mayor', 0, 2, 'C');
$pdf->Cell(190, 5, '', 0, 2, 'C');
$pdf->SetFont('Arial', 'BU', 16);
$pdf->Cell(190, 5, 'PEDDLER PERMIT/LICENSE', 0, 1, 'C');
if ($reportpermit == '1') {
    $result = mysql_query("select concat(a.owner_first_name, ' ', a.owner_middle_name, ' ', a.owner_last_name),\n\tb.peddlers_business_name, b.for_year, b.application_date, \n\tconcat(a.owner_street, ' ', d.zone_desc, ' ', e.barangay_desc, ' ', f.district_desc, ' ', \n\tg.city_municipality_desc, ' ', h.province_desc, a.owner_zip_code), b.merchandise_sold, b.peddlers_permit_code, b.for_year, b.transaction  \n\tfrom ebpls_owner a, ebpls_peddlers_permit b, \n\tebpls_zone d,  ebpls_barangay e, ebpls_district f, ebpls_city_municipality g, ebpls_province h \n\twhere a.owner_id=b.owner_id and a.owner_zone_code = d.zone_code and a.owner_barangay_code=e.barangay_code and a.owner_district_code=f.district_code and a.owner_city_code=g.city_municipality_code and a.owner_province_code=h.province_code and b.peddlers_permit_code ='{$permit_num}' or a.owner_last_name = '{$owner_last}' and b.active = '1' order by peddlers_permit_id  desc limit 1") or die(mysql_error());
} else {
    $result = mysql_query("select concat(a.owner_first_name, ' ', a.owner_middle_name, ' ', a.owner_last_name),\n\tb.peddlers_business_name, b.for_year, b.application_date, \n\tconcat(a.owner_street, ', ', d.zone_desc, ', ', e.barangay_desc, ', ', f.district_desc, ', ', \n\tg.city_municipality_desc, ', ', h.province_desc,' ', a.owner_zip_code), b.merchandise_sold, b.for_year, b.transaction \n\tfrom ebpls_owner a, ebpls_peddlers_permit b, \n\tebpls_zone d,  ebpls_barangay e, ebpls_district f, ebpls_city_municipality g, ebpls_province h \n\twhere a.owner_id=b.owner_id and a.owner_zone_code = d.zone_code and a.owner_barangay_code=e.barangay_code and a.owner_district_code=f.district_code and a.owner_city_code=g.city_municipality_code and a.owner_province_code=h.province_code and b.peddlers_permit_code ='{$permit_num}' and b.active = '1'") or die(mysql_error());
}
$resulta = mysql_fetch_row($result);
$pdf->Cell(190, 5, '', 0, 1, 'C');
$pdf->Cell(190, 5, '', 0, 1, 'C');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetX(5);
$pdf->Cell(50, 5, 'TO WHOM IT MAY CONCERN:', 0, 1, 'L');
$pdf->Cell(190, 5, '', 0, 1, 'C');
$pdf->SetFont('Arial', '', 10);
$pdf->SetX(10);
$pdf->Cell(40, 5, 'This is to certify that', 0, 0, 'L');
$pdf->SetX(50);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(150, 5, $resulta[0], 0, 1, 'C');
$pdf->SetX(50);
$pdf->Cell(150, 5, '-----------------------------------------------------------------------------------------------------------------------------', 0, 1, 'C');
$pdf->Cell(200, 5, '', 0, 1, 'C');
$pdf->SetX(10);
$pdf->SetFont('Arial', '', 10);
$pdf->Write(5, 'of ');
$pdf->SetFont('Arial', 'BU', 10);
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_peddler_permit.php

示例13: die

$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 1, 'C');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(70, 5, 'Others', 1, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 1, 'C');
//new signatories table
$result = mysql_query("select gs_name, gs_pos, gs_office from global_sign where sign_id =1") or die(mysql_error());
$resulta = mysql_fetch_row($result);
//$Y_Table_Position = $Y_Table_Position + 20;
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->SetY(-18);
$pdf->SetX(5);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(142, 5, 'Recommend Approval:', 1, 0, 'L');
$pdf->Cell(142, 5, 'Approved:', 1, 1, 'L');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->SetX(5);
$pdf->SetFont('Arial', 'BU', 10);
$pdf->Cell(142, 5, '', 1, 0, 'C');
$pdf->Cell(142, 5, $resulta[0], 1, 1, 'C');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetX(5);
$pdf->Cell(142, 5, '', 1, 0, 'C');
$pdf->Cell(142, 5, $resulta[2], 1, 0, 'C');
$pdf->Output();
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_buss_permit_original.php

示例14: getIndexes

<?php 
require 'extensions/fpdf.php';
require 'requests/_main.php';
switch ($_GET['id']) {
    case '1':
        $indexes = getIndexes();
        //echo $indexes[0]->getMonth();
        //echo "$/m&#178; " . $indexes[0]->getPrice();
        $pdf = new FPDF();
        $pdf->AddPage();
        $pdf->SetFont('Helvetica', 'B', 20);
        $pdf->SetX(90);
        $pdf->Cell(10, 25, $indexes[0]->getMonth());
        $pdf->Ln();
        $pdf->SetX(82);
        $pdf->Cell(0, 0, '$/m² ' . $indexes[0]->getPrice());
        $pdf->Output();
        break;
    case '2':
        $sliders = getSliders();
        $notes = getNotes();
        $pdf = new FPDF();
        $pdf->AddPage();
        $pdf->SetFont('Helvetica', '', 8);
        foreach ($sliders as $slider) {
            if ($slider->getTitle() === "Hip&oacute;tesis de Gesti&oacute;n Econ&oacute;mica y Composici&oacute;n del Precio") {
                $gallery = getSliderGallery($slider->getIdSlider());
                if ($gallery) {
                    $filename = generateRandomString();
                    file_put_contents("_temp/" . $filename . getExtension($gallery[0]->getTypeImage()), $gallery[0]->getSliderImage());
开发者ID:KINOTO,项目名称:apymeco,代码行数:30,代码来源:pdf.php

示例15:

    $pdf->Cell(80);
    $pdf->Cell(30, 10, 'DATA KARYAWAN', 0, 0, 'C');
    $pdf->Ln();
    $pdf->Cell(80);
    $pdf->Cell(30, 10, 'PT. NiqoWeb Cikarang | www.niqoweb.com', 0, 0, 'C');
    $pdf->Ln();
}
//Fields Name position
$Y_Fields_Name_position = 30;
//First create each Field Name
//Gray color filling each Field Name box
$pdf->SetFillColor(110, 180, 230);
//Bold Font for Field Name
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY($Y_Fields_Name_position);
$pdf->SetX(5);
$pdf->Cell(25, 8, 'NIK', 1, 0, 'C', 1);
$pdf->SetX(30);
$pdf->Cell(40, 8, 'Nama', 1, 0, 'C', 1);
$pdf->SetX(70);
$pdf->Cell(25, 8, 'Tempat Lahir', 1, 0, 'C', 1);
$pdf->SetX(95);
$pdf->Cell(25, 8, 'Tanggal Lahir', 1, 0, 'C', 1);
$pdf->SetX(120);
$pdf->Cell(50, 8, 'Alamat', 1, 0, 'C', 1);
$pdf->SetX(170);
$pdf->Cell(35, 8, 'No Telepon', 1, 0, 'C', 1);
$pdf->Ln();
//Table position, under Fields Name
$Y_Table_Position = 38;
//Now show the columns
开发者ID:nurullaeli07,项目名称:try,代码行数:31,代码来源:index.php


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