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


PHP MYPDF::Output方法代码示例

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


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

示例1: loadPage

 function loadPage()
 {
     // create new PDF document
     $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
     $pdf->titulo = $this->getPlan();
     // set document information
     $pdf->SetCreator(PDF_CREATOR);
     $pdf->SetAuthor('Red de Universidades Anahuac');
     $pdf->SetTitle('Plan Estrategico');
     $pdf->SetSubject($this->getPlan());
     $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('helvetica', 'N', 11);
     // add a page
     $pdf->AddPage();
     $pdf->SetY(5);
     $html = "\n<!-- EXAMPLE OF CSS STYLE -->\n<style>  \n\ttd{\n\tborder:1px solid #666;\n\t}\n\t\n\ttd.title{\n\tbackground:#E5E5E5;\n\tpadding:10px;\n\t}\n   \n</style> <br />";
     $html .= $this->Model->getLineas();
     // output the HTML content
     $pdf->writeHTML($html, true, false, true, false, '');
     //Close and output PDF document
     $pdf->Output('plan_operativo.pdf', 'I');
 }
开发者ID:maroend,项目名称:protocolos,代码行数:41,代码来源:printplan.class.php

示例2: Log

$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);
////////////////////////////////////////////////////////////////////////////////
$datos = filter_input_array(INPUT_POST);

global $db, $smarty;
$log =  new Log($db);

$registros = $log->ver_log($datos["hidden_usr"], $datos["hidden_desde"], $datos["hidden_hasta"], $datos["hidden_accion"], $datos["hidden_clase"]);

$smarty->assign("log", $registros);

////////////////////////////////////////////////////////////////////////////////
$html = $smarty->fetch("templates/admin/print_log.html");

$pdf->AddPage('L');
$pdf->SetFont('helvetica', '', 8);

$pdf->writeHTML($html, true, 0, 0, 0);
$pdf->Output('print_log_'.date("d/m/Y g:i a").'.pdf', 'D');


?>
开发者ID:prinsich,项目名称:tesis-aus,代码行数:30,代码来源:print_log.php

示例3: pdfGen

function pdfGen($group_name, $mode = NULL, $start_date, $end_date, $stats, $l, $title, $path_www)
{
    global $centreon_path;
    // create new PDF document
    $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    // set document information
    $pdf->SetCreator("PDF Reports Module");
    $pdf->SetAuthor(getGeneralOptInfo("pdfreports_report_author"));
    //$pdf->SetAuthor('Fully Automated Nagios');
    $pdfTitle = $title . " " . $group_name;
    //$pdfTitle = "Rapport de supervision du hostgroup ".$group_name;
    $pdf->SetTitle($pdfTitle);
    //$pdf->SetSubject('TCPDF Tutorial');
    //$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
    // define default header data
    $header = $title . " " . $group_name;
    //$header = "Rapport de supervision du hostgroup ".$group_name;
    //$ip = $_SERVER['HOSTNAME'];
    $startDate = date("d/m/Y", $start_date);
    $time = time();
    $endDate = date("d/m/Y", $time);
    $string = _("From") . " " . strftime("%A", $start_date) . " " . $startDate . " " . _("to") . " " . strftime("%A", $time) . " " . $endDate . "\n";
    // set default header data
    $pdf->SetHeaderData('../../../img/headers/' . getGeneralOptInfo("pdfreports_report_header_logo"), PDF_HEADER_LOGO_WIDTH, $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('helvetica', '', 12);
    // add a page
    $pdf->AddPage();
    //Column titles
    $header = array('Status', 'Time', 'Total Time', 'Mean Time', 'Alert');
    // Pie chart Generation
    $piechart_img = pieGen($stats, $mode);
    //Data loading
    $data = $pdf->LoadData($stats);
    // print colored table
    //$pdf->ColoredTable($header, $data,$chart_img);
    if ($mode == "hgs") {
        // Hostgroup
        $pdf->ColoredTable($header, $data, $piechart_img, $path_www);
    } else {
        if ($mode == "sgs") {
            // Servicegroup
            $pdf->ServicesColoredTable($header, $data, $piechart_img, $path_www);
        }
    }
    // ---------------------------------------------------------
    //génération d'un nom de pdf
    $endDay = date("d", $time);
    $endYear = date("Y", $time);
    $endMonth = date("m", $time);
    $pdfDirName = getGeneralOptInfo("pdfreports_path_gen") . $endYear . $endMonth . $endDay . "/";
    $pdfFileName = $pdfDirName . $endYear . "-" . $endMonth . "-" . $endDay . "_" . $group_name . ".pdf";
    if (!is_dir($pdfDirName)) {
        mkdir($pdfDirName);
    }
    //Close and output PDF document
    $pdf->Output($pdfFileName, 'F');
    return $pdfFileName;
}
开发者ID:hagen3000,项目名称:centreon-pdf-reports,代码行数:75,代码来源:PDF-Func.php

示例4: sum

        $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,代码行数:30,代码来源:repCetakSlipKomisi.php

示例5: date

						<td width="30%">
						</td>
						<td width="60%">
							<table align="center">
								<tr>
									<td style="font-size:30px; border-top-width:1px;" width="30%"><strong>Firma Cajero Recaudación </strong></td>
									<td>&nbsp;</td>
									<td style="font-size:30px; border-top-width:1px;" width="30%"><strong>Firma Cajero Contabilidad</strong></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>				
	';
$pdf->writeHTML($html, true, false, true, false, '');
$pdf->Output($nombreUser . '_' . 'arqueoEspontaneo_' . $arq_id . '.pdf', $tipoDoc);
DEFINE('FTP_USER', 'recaudacion');
DEFINE('FTP_PASS', 'recaudacion');
$path = date('Y') . "/boleta/";
$path = explode("/", $path);
$conn_id = @ftp_connect("10.2.21.108", 21, 1);
if (!$conn_id) {
    return false;
}
if (@ftp_login($conn_id, FTP_USER, FTP_PASS)) {
    foreach ($path as $dir) {
        if (!$dir) {
            continue;
        }
        $currPath .= "/" . trim($dir);
        if (!@ftp_chdir($conn_id, $currPath)) {
开发者ID:brockoly,项目名称:recauda,代码行数:31,代码来源:generarArqueo_PDF.php

示例6: Iglesias

$pdf->SetTitle($_SESSION['__classe__']->to_string());
// set default header data
$pdf->SetHeaderData("", 0, "Scuola Media Statale \"Arborea - Lamarmora\" - secondaria di primo grado", "Via Isonzo, 5 - Iglesias (CI)");
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', 8.0));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', 8.0));
// 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('helvetica', '', 12);
// add a page
$pdf->AddPage("L");
//Column titles
$header = array('Ora', 'Lun', 'Mar', 'Mer');
// print colored table
$pdf->ColoredTable($header, $orario_classe, $materie, $classe, $_SESSION['__classe__']->isFullTime());
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('orario.pdf', 'D');
开发者ID:jamleh,项目名称:e-schoolbook,代码行数:30,代码来源:pdf_class_schedule.php

示例7: while

  <td width="50">Hora In</td><td width="50">HoraSal</td><td width="80">Dia Semana</td><td width="30">Fest</td>
 </tr>
 </table>
EOD;
        $pdf->writeHTML($tbl, false, false, false, false, '');
        while (list($ID, $Identificacion, $Fecha, $ExtrasDiurnas, $ExtrasNocturnas, $ExtrasDiurnasFest, $ExtrasNocturnasFest, $Errores, $HoraIn, $HoraOut, $DiaSem, $Festivo) = mysql_fetch_array($r)) {
            $tbl = <<<EOD

<table border="1" cellpadding="1" cellspacing="1" align="center" style="border-left: 1px solid #000099;
\t\tborder-right: 1px solid #000099;
\t\tborder-top: 1px solid #000099;
\t\tborder-bottom: 1px solid #000099;">
 <tr>
  <td width="20">{$ID}</td><td width="80">{$Identificacion}</td><td width="80">{$Fecha}</td><td  width="30">{$ExtrasDiurnas}</td><td  width="30">{$ExtrasNocturnas}</td><td  width="30">{$ExtrasDiurnasFest}</td><td  width="30">{$ExtrasNocturnasFest}</td><td width="20">{$Errores}</td>
  <td  width="50">{$HoraIn}</td><td  width="50">{$HoraOut}</td><td width="80">{$DiaSem}</td><td  width="30">{$Festivo}</td>
 </tr>
 </table>
EOD;
            $pdf->writeHTML($tbl, false, false, false, false, '');
        }
        $pdf->AddPage();
    } else {
        $pdf->writeHTML(" <br> No se encontraron registros <br>", false, false, false, false, '');
        $pdf->AddPage();
    }
}
//Close and output PDF document
$pdf->Output($nombre_file . '.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
开发者ID:Kenovix,项目名称:san-miguel,代码行数:31,代码来源:extras.php

示例8: array

$pdf->setLanguageArray($l);
$pdf->SetFont('times', '', 10, '', true);
$pdf->AddPage();
$spacing = -0.01;
$stretching = 75;
$pdf->setFontStretching($stretching);
$pdf->setFontSpacing($spacing);
$titling = <<<EOD
<strong> <font style="font-size:11">Pharmacy Sys</font> </strong> <br> <strong>Official Receipt</strong><br>
Student Center Ground Floor,<br> P.O. Box Private Bag Kabarak, Kenya <br> Tel: +254 702 937 925 <br> E-mail: pharmacysys@yahoo.com 
<br>-----------------------------------------
EOD;
$header = array('Drug', 'Price.', 'Qtty', 'Cost(Kshs.)');
$ddt = <<<EOD
{$time}   
EOD;
$html = <<<EOD
<br>-----------------------------------------
EOD;
$data = $pdf->LoadData('receipts/docs/' . $recNo . '.txt');
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $titling, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'C', $autopadding = true);
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $ddt, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'L', $autopadding = true);
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = '', $autopadding = true);
$pdf->ColoredTable($header, $data);
$pdf->SetY(-10);
$pdf->Cell(0, 0, 'You were served by: ' . strtoupper($user), 0, false, 'L', 0, '', 0, false, 'T', 'M');
$pdf->Output('receipts/printouts/' . $details1['customer_name'] . '-receipt.pdf', 'F');
unlink('receipts/docs/' . $recNo . '.txt');
unset($_SESSION['custId'], $_SESSION['custName'], $_SESSION['age'], $_SESSION['sex'], $_SESSION['postal_address'], $_SESSION['phone']);
header('Location: payment.php');
exit;
开发者ID:arshanam,项目名称:Pharmacy,代码行数:31,代码来源:receipt.php

示例9: Date

$html = $html . '<tr><td>Total Agency Fee</td><td align="right">£' . $LocationVAT . '</td></tr>';
$html = $html . '<tr><td>Agency VAT</td><td align="right">£' . $AgencyVAT . '</td></tr>';
$html = $html . '</table><br><br>';
$html = $html . '<table width="250">';
$html = $html . '<tr><td>OT/Damage Deposit</td><td align="right">£' . $Deposit . '</td></tr>';
$html = $html . '</table><br><br>';
$html = $html . '<br><br><h3>Booked Date(s)</h3><br>';
$query = "select BookingID, BookingDate, StartTime, EndTime, NoCrew, AgreedDayRate, Notes from BookingDates where BookingID = '" . $BookingID . "' order by BookingDate asc;";
$result = mysqli_query($link, $query);
$html = $html . '<table>';
$html = $html . '<tr><th>Date</th><th>Start Time</th><th>Finish Time</th><th>No Cast & Crew</th><th align="right">Day Rate (£\'s)</th></tr>';
while ($row = mysqli_fetch_row($result)) {
    $BookingID = $row[0];
    $BookingDate = new DateTime($row[1]);
    $StartTime = $row[2];
    $EndTime = $row[3];
    $NoCrew = $row[4];
    $AgreedDayRate = $row[5];
    $Notes = $row[6];
    $html = $html . '<tr><td>' . $BookingDate->format('d-m-Y') . '</td><td>' . $StartTime . '</td><td>' . $EndTime . '</td><td>' . $NoCrew . '</td><td align="right">' . $AgreedDayRate . '</td></tr>';
    $html = $html . '<tr><td colspan="5"><i>' . $Notes . '</i></td></tr>';
}
$html = $html . '</table>';
$pdf->writeHTML($html, true, false, true, false, '');
$pdf->Ln();
// reset pointer to the last page
$pdf->lastPage();
//Close and output PDF document
$pdf->Output('Booking From (J' . $JobRef . '-' . $BookingID . ').pdf', 'I');
// Closing connection
mysqli_close($link);
开发者ID:AdamDShort,项目名称:UK-Film-Location-Admin,代码行数:31,代码来源:BookingFormPDF.php

示例10:

//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", "", 9);
//$pdf->SetCellPadding(0);
//$pdf->SetLineWidth(2);
$text = "Cras eros leo, porttitor porta, accumsan fermentum, ornare ac, est. Praesent dui lorem, imperdiet at, cursus sed, facilisis aliquam, nibh. Nulla accumsan nonummy diam. Donec tempus. Etiam posuere. Proin lectus. Donec purus. Duis in sem pretium urna feugiat vehicula. Ut suscipit velit eget massa. Nam nonummy, enim commodo euismod placerat, tortor elit tempus lectus, quis suscipit metus lorem blandit turpis. Cras nulla nulla, hendrerit et, porttitor eu, adipiscing et, lorem. Pellentesque sit amet augue. Nam lobortis sollicitudin turpis. Sed velit est, mollis non, elementum ac, tempor quis, arcu. Aliquam a pede. Quisque arcu magna, nonummy eget, hendrerit a, lacinia egestas, enim. Donec bibendum. In a ipsum. Sed gravida facilisis sem. Nam tempus, tellus ut tincidunt elementum, augue tellus fermentum quam, sit amet lobortis sem ipsum sed elit.In accumsan ligula nonummy libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed vel risus. Vestibulum ut lacus. Proin fermentum, erat a commodo lacinia, lacus dui hendrerit nulla, et pellentesque neque diam at elit. Fusce blandit, dolor pharetra bibendum lacinia, augue sem scelerisque sem, bibendum sodales orci justo et sapien. Etiam nec eros ac turpis lobortis interdum. Integer volutpat nibh a lacus. Duis erat est, rhoncus nec, rhoncus viverra, pulvinar sit amet, leo. Duis blandit. Nunc convallis nisi ac ante. Cras nunc massa, molestie quis, porttitor a, volutpat accumsan, quam. Nullam a erat vitae orci bibendum viverra. Donec tristique leo eget nisl adipiscing pellentesque. Nam vehicula, enim quis aliquet euismod, dolor sem pellentesque libero, nec blandit nisi erat sit amet dui. Integer sapien. Donec molestie metus in neque. Suspendisse porttitor enim a nisl.Maecenas lacinia dolor ornare ligula. Maecenas eu eros. Curabitur non leo non nulla fringilla auctor. Etiam porttitor diam vel quam. Maecenas sed ligula nec massa venenatis faucibus. Curabitur aliquet accumsan tellus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse vitae eros ac purus fermentum suscipit. Curabitur interdum orci a mi. Nunc placerat diam in elit.Nunc elit. Maecenas vulputate, sem sit amet condimentum lacinia, ipsum eros porta dolor, sed luctus magna ante eu nisl. Proin non nisi. Vivamus sed quam et est lobortis porttitor. Cras sit amet urna sit amet elit ultricies consequat. Praesent blandit elit ut urna. Cras hendrerit rhoncus sapien. Fusce ullamcorper lobortis ipsum. Pellentesque vel velit at sem blandit facilisis. Nulla aliquet orci id metus.";
// print some rows just as example
for ($i = 0; $i < 5; $i++) {
    $pdf->MultiRow("Row " . ($i + 1), $text . "\n");
}
// reset pointer to the last page
$pdf->lastPage();
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output("example_020.pdf", "I");
//============================================================+
// END OF FILE
//============================================================+
?>
 
开发者ID:arhe,项目名称:pwak,代码行数:29,代码来源:example_020.php

示例11:

					
					if (!file_exists($filename)) {
				
				
							mkdir('Pdf_Uploads',0777);
				
						//mkdir('$path',0777);		
					}
					
						//$unique = rand();
						
						$unique = $_SESSION['person_id'];
							
				       $pdfname = $clientsresult['first_name'].'_myfuneral_At_need_plan_'.$unique.'.pdf';
					
						$pdfdoc=$pdf->Output('Pdf_Uploads'.'/'.$pdfname, 'F');
					
					
					//$pdf->Output($path.'/'.$pdfname, 'F');
		
		
		/*----------- End of PDF Formation -------------- */
		
		
		// Load the SwiftMailer files
		//require_once($dir.'/swift/swift_required.php');
		
		//$email = 'peter@ezifunerals.com.au';
		
		$email = $clientsresult['email'];
		
开发者ID:hchavez,项目名称:ez,代码行数:29,代码来源:pdfedit.php

示例12: Iglesias

$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor($author);
$pdf->SetTitle("Elenco ritardi di " . $alunno['cognome'] . " " . $alunno['nome']);
// set default header data
$pdf->SetHeaderData("", 0, "Scuola Media Statale \"Arborea - Lamarmora\" - secondaria di primo grado", "Via Isonzo, 5 - Iglesias (CI)");
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', 8.0));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', 8.0));
// 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('helvetica', '', 10);
$pdf->SetLineWidth(0.1);
// add a page
$pdf->AddPage("P");
$pdf->pageBody($ritardi, $author, $alunno, $mesi, $num_ritardi, $somma_ritardi);
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('ritardi.pdf', 'D');
开发者ID:jamleh,项目名称:e-schoolbook,代码行数:30,代码来源:pdf_delay.php

示例13: explode

    echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
//GET DATA FROM URL
$id = $_GET['id'];
$data_i = $_GET['data_i'];
$data_f = $_GET['data_f'];
// SQL Query
$result = mysqli_query($con, "SELECT data, operatore, (ore_std + ore_extra + ore_fest + ore_sabato) as total FROM co_ore  WHERE id_commessa='{$id}' AND data BETWEEN '{$data_i}' AND '{$data_f}'");
while ($row = mysqli_fetch_array($result)) {
    $orderdate = explode('-', $row['data']);
    $data = $orderdate[2] . "/" . $orderdate[1] . "/" . $orderdate[0];
    $operatore = $row['operatore'];
    $total = $row['total'];
    if ($i % 2 == 0) {
        $color_row = "aliceblue";
        $i++;
    } else {
        $color_row = "white";
        $i++;
    }
    $tbl .= '<tr style="background-color:' . $color_row . '"><td>' . $data . '</td><td>' . $operatore . '</td><td>' . $total . '</td></tr>';
}
// Print text using writeHTMLCell()
$pdf->writeHTML($tbl_header . $tbl . $tbl_footer, true, false, false, false, '');
// ---------------------------------------------------------
// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output('report.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
开发者ID:neiroc,项目名称:gestionale,代码行数:31,代码来源:oreExt.php

示例14: VerticalBarChart

    }
    $chart = new VerticalBarChart(800, 400);
    $chart->setDataSet($dataSet);
    $chart->setTitle(gettext("assignment") . " " . $i);
    $chart->render(EXAM_ORGANIZATION_TEMP_DIR . $key . "assignment" . $i . ".png");
}
for ($i = 1; $i <= $assignments; $i++) {
    switch (($i - 1) % 3) {
        case 0:
            $pdf->AddPage();
            $y = 30;
            break;
        case 1:
            $y = 110;
            break;
        case 2:
            $y = 190;
            break;
    }
    $pdf->Image(EXAM_ORGANIZATION_TEMP_DIR . $key . 'assignment' . $i . '.png', 30, $y, 150, 75, '', '', '', false, 300);
}
//generate filename without umlaute
$umlaute = array("/Š/", "/š/", "/Ÿ/", "/€/", "/…/", "/†/", "/§/");
$replace = array("ae", "oe", "ue", "Ae", "Oe", "Ue", "ss");
$filenameUmlaute = gettext("exam statistics") . ' ' . $exam_name . '.pdf';
$filename = preg_replace($umlaute, $replace, $filenameUmlaute);
$pdf->Output($filename, 'D');
for ($i = 1; $i <= $assignments; $i++) {
    unlink(EXAM_ORGANIZATION_TEMP_DIR . $key . "assignment" . $i . ".png");
}
unlink(EXAM_ORGANIZATION_TEMP_DIR . $key . "notenspiegel.png");
开发者ID:rolwi,项目名称:koala,代码行数:31,代码来源:export_results_and_statistics_pdf.php

示例15:

EOD;
$pdf->writeHTML($html, true, false, false, false, '');
$pdf->Ln(5);
$row_responsable = "";
$row_responsable .= "\r\n                <tr nobr=\"true\">\r\n                   <td></td>\r\n                   <td align=\"center\"><FONT SIZE=\"9\">Nombre y Firma del Responsable</font></td>\r\n                   <td></td>\r\n                </tr>";
$responsable = <<<EOD
    <table border="0" class="general">
        <tr>        
            <th width="150"></th>
            <th width="325"><hr color="black" size=2></th>
            <th width="150"></th>
        </tr>
        {$row_responsable}
    </table>
        {$estilo_tabla}
EOD;
$pdf->writeHTML($responsable, true, false, false, false, '');
$pdf->Ln(3);
$row_datosRes = "";
$row_datosRes .= "\r\n                <tr>\r\n                   <td align=\"right\" rowspan=\"2\"><FONT SIZE=\"8\"><br>Cargo del Responsable: </font></td>\r\n                   <td class=\"celdaTablaFicha\" rowspan=\"2\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td align=\"right\"><FONT SIZE=\"8\"></font></td>\r\n                   <td class=\"celdaTablaFicha\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td align=\"right\" rowspan=\"2\"><FONT SIZE=\"8\"><br>Tel&eacute;fono del Responsable: </font></td>\r\n                   <td class=\"celdaTablaFicha\" rowspan=\"2\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td align=\"right\"><FONT SIZE=\"8\"></font></td>\r\n                   <td class=\"celdaTablaFicha\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td align=\"right\" rowspan=\"2\"><FONT SIZE=\"8\"><br>Correo electr&oacute;nico del Responsable: </font></td>\r\n                   <td class=\"celdaTablaFicha\" rowspan=\"2\"></td>\r\n                </tr>\r\n                <tr>\r\n                   <td align=\"right\"><FONT SIZE=\"8\"></font></td>\r\n                   <td class=\"celdaTablaFicha\"></td>\r\n                </tr>";
$datosRes = <<<EOD
    <table class=\\"tablaFicha\\" cellpadding=\\"5\\">
        {$row_datosRes}
    </table>
        {$estilo_tabla}
EOD;
$pdf->writeHTML($datosRes, true, false, false, false, '');
$pdf->lastPage();
# visualizamos el documento
$pdf->Output('FichaIngresoBco' . $infoBcoPDF['IdBco'] . '.pdf', 'I');
开发者ID:jkarlos1402,项目名称:DGIMy,代码行数:30,代码来源:fichaTecnica_pdf.php


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