本文整理汇总了PHP中PDF::SetLineWidth方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SetLineWidth方法的具体用法?PHP PDF::SetLineWidth怎么用?PHP PDF::SetLineWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::SetLineWidth方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: curdate
//Criando a conexão pelo PDO
$sql = $pdo->prepare("select caixa.tipo, caixa.funcionario, valor_recebido, u.nome, date_format(data_recebimento,'%d/%m/%Y %H:%i:%s') \nfrom caixa join usuarios u on u.id_usuario = usuario_fk \nwhere date_format(data_recebimento,'%H:%i:%s') > '{$h1}' and date_format(data_recebimento,'%H:%i:%s') < '{$h2}' and date_format(data_recebimento,'%Y-%m-%d') = curdate()\norder by u.nome;");
// consulta
$sql->execute();
// executar
//Fim Criando a conexão pelo PDO
//Inserir hífen
$hifen = '-';
//Fim Inserir hífen
//Cabeçalho da tabela
// Colors, line width and bold font
$pdf->SetFillColor(0, 0, 120);
$pdf->SetFillColor(56, 176, 222);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(1, 0, 0);
$pdf->SetLineWidth(0.1);
$pdf->SetFont('Times', 'B', 12);
//setando títulos cabeçalho
//$pdf->Cell(0,1,utf8_decode('RELATÓRIO DE ENTRADAS DIÁRIAS'),1,1,'C',true);
$pdf->Cell(0, 1, utf8_decode('LABORATÓRIO DO EXERCÍCIO - CURSO DE EDUCAÇÃO FÍSICA'), 1, 1, 'C', true);
$pdf->Cell(0, 1, utf8_decode($nome_turno), 1, 1, 'C', false);
$pdf->Cell(0, 1, utf8_decode('UNIMONTES ' . $hifen . ' CAMPUS AVANÇADO DE JANUÁRIA'), 1, 1, 'C', true);
$pdf->Cell(0, 1, utf8_decode(utf8_encode(ucfirst($data))), 1, 1, 'L', false);
$pdf->Cell(4, 1, utf8_decode('Data'), 1, 0, 'C', true);
$pdf->Cell(8, 1, utf8_decode('Cliente'), 1, 0, 'C', true);
$pdf->Cell(4, 1, utf8_decode('Tipo'), 1, 0, 'C', true);
$pdf->Cell(4, 1, utf8_decode('Valor'), 1, 0, 'C', true);
$pdf->Cell(7.7, 1, utf8_decode('Funcionário'), 1, 0, 'C', true);
$pdf->Ln();
// Color and font restoration
$pdf->SetFillColor(224, 235, 255);
示例2: array
$codentidad = $_POST["codcobrador"];
$where = "1=1";
if ($codcobrador != "") {
$where .= " AND codcobrador='{$codcobrador}'";
}
if ($nombrecobrador != "") {
$where .= " AND nombrecobrador like '%" . $nombrecobrador . "%'";
}
$where2 .= " ORDER BY nombrecobrador ASC";
//Ttulos de las columnas
$header = array('Cod. Cobrador', 'Nombre Cobrador');
//Colores, ancho de lnea y fuente en negrita
$pdf->SetFillColor(200, 200, 200);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 8);
//Cabecera
$pdf->SetX(60);
$w = array(20, 60);
for ($i = 0; $i < count($header); $i++) {
$pdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1);
}
$pdf->Ln();
$pdf->SetFont('Arial', '', 8);
$sel_resultado = "SELECT * FROM cobradores WHERE borrado=0 AND " . $where . $where2;
$res_resultado = mysql_query($sel_resultado);
$contador = 0;
while ($contador < mysql_num_rows($res_resultado)) {
$pdf->SetX(60);
$pdf->Cell($w[0], 5, mysql_result($res_resultado, $contador, "codcobrador"), 'LRTB', 0, 'C');
示例3: pdf
/**
* Genera un reporte en PDF
*
* @param array $result
* @param array $sumArray
* @param string $title
* @param array $weightArray
* @param array $headerArray
*/
function pdf($result, $sumArray, $title, $weightArray, $headerArray)
{
$config = Config::read('config');
$active_app = Router::get_application();
//Orientación
if ($sumArray > 200) {
$orientation = 'L';
} else {
$orientation = 'P';
}
$numRows = 140;
//Tipo de Papel
if ($sumArray > 250) {
$paper = 'legal';
} else {
$paper = 'letter';
}
if ($paper == 'letter' && $orientation == 'P') {
$widthPage = 220;
$numRows = 42;
}
if ($paper == 'legal' && $orientation == 'L') {
$widthPage = 355;
$numRows = 30;
}
if ($paper == 'letter' && $orientation == 'L') {
$widthPage = 270;
$numRows = 30;
}
//Crear Documento PDF
$pdf = new PDF($orientation, 'mm', $paper);
$pdf->Open();
$pdf->AddPage();
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->AddFont('Verdana', '', 'verdana.php');
$pdf->SetFont('Verdana', '', 14);
$pdf->SetY(20);
$pdf->SetX(0);
$pdf->Ln();
if ($config->{$active_app}->name) {
$pdf->MultiCell(0, 6, strtoupper($config->{$active_app}->name), 0, "C", 0);
}
$pdf->MultiCell(0, 6, "REPORTE DE " . strtoupper($title), 0, "C", 0);
$pdf->SetFont('Verdana', '', 12);
if (isset($_SESSION['fecsis'])) {
$pdf->MultiCell(0, 6, "FECHA " . date("Y-m-d"), 0, "C", 0);
}
$pdf->Ln();
//Colores, ancho de línea y fuente en negrita
$pdf->SetFillColor(0xf2, 0xf2, 0xf2);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 10);
if ($weightArray[0] < 11) {
$weightArray[0] = 11;
}
//Parametros del Reporte
$pos = floor($widthPage / 2 - $sumArray / 2);
$pdf->SetX($pos);
for ($i = 0; $i <= count($headerArray) - 1; $i++) {
$pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
}
$pdf->Ln();
//Restauración de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
//print_r($weightArray);
//Buscamos y listamos
$n = 1;
$p = 1;
$t = 0;
foreach ($result as $row) {
//$pdf->Cell(Ancho, Alto, contenido, ?, ?, Align)
if ($n > $numRows || $p == 1 && $n > $numRows - 3) {
$pdf->AddPage($orientation);
$pdf->SetY(30);
$pdf->SetX($pos);
$pdf->SetFillColor(0xf2, 0xf2, 0xf2);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 10);
for ($i = 0; $i < count($headerArray); $i++) {
$pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
}
$pdf->Ln();
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
//.........这里部分代码省略.........
示例4: PDF
</html>
<?php
} else {
//
//
// Begin Report Generation
//
//
$pdf = new PDF();
$pdf->AliasNbPages();
include_once "loadfonts.php";
$pdf->SetFont($config->ParameterArray['PDFfont'], '', 8);
$pdf->SetFillColor(0, 0, 0);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(128, 0, 0);
$pdf->SetLineWidth(0.3);
$pdf->SetfillColor(224, 235, 255);
$pdf->SetTextColor(0);
$column = 0;
$pdf->SetLeftMargin(10);
$pdf->AddPage();
$pdf->Bookmark("Surplus/Salvage by Date");
$pdf->Cell(80, 5, __("Surplus/Salvage by Date"));
$pdf->Ln();
$headerTags = array(__("Surplus Date"), __("Name"), __("Serial Number"), __("Asset Tag"), __("UserName"));
$cellWidths = array(30, 40, 40, 30, 30);
$fill = 0;
$maxval = count($headerTags);
for ($col = 0; $col < $maxval; $col++) {
$pdf->Cell($cellWidths[$col], 7, $headerTags[$col], 1, 0, 'C', 1);
}
示例5:
$pdf->SetX(270);
$pdf->Cell(25, 5, '95', 0, 0, 'L');
$pdf->SetY(167);
$pdf->SetX(280);
$pdf->Cell(25, 5, '100', 0, 0, 'L');
$pdf->SetY(167);
$pdf->SetX(290);
$pdf->Cell(25, 5, '105', 0, 0, 'L');
$pdf->SetY(167);
$pdf->SetX(300);
$pdf->Cell(25, 5, '110', 0, 0, 'L');
$pdf->SetY(180);
$pdf->SetX(80);
$pdf->Cell(25, 5, '1:200,000', 0, 0, 'L');
if ($graphtax1 > 0) {
$pdf->SetLineWidth(2);
$pdf->SetDrawColor(255, 0, 0);
$pdf->Line(80, 70, 80 + $graphtax1, 70);
}
$pdf->SetY(67);
$pdf->SetX(80 + $graphtax1 + 3);
$pdf->Cell(25, 5, 'Year ' . $dateprev . ' (' . number_format($sumtax1[0], 2) . ')', 0, 0, 'L');
if ($graphtax2 > 0) {
$pdf->SetLineWidth(2);
$pdf->SetDrawColor(255, 100, 0);
$pdf->Line(80, 75, 80 + $graphtax2, 75);
}
$pdf->SetY(72);
$pdf->SetX(80 + $graphtax2 + 3);
$pdf->Cell(25, 5, 'Year ' . $datenext . ' (' . number_format($sumtax2[0], 2) . ')', 0, 0, 'L');
if ($graphfee1 > 0) {
示例6: while
$pdf->SetFont('Times', '', 11);
$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);
示例7: home__memberlist_printview
function home__memberlist_printview()
{
global $base_url, $files_dir, $config;
// $content='<html><head><meta http-equiv="Content-Type" content="application/pdf; charset=utf-8" />';
// drupal_add_css(BOOTSTRAP.'/css/bootstrap.min.css');
// drupal_add_css(CHURCHDB.'/cdb_printview.css');
// $content=$content.drupal_get_header();
if (!user_access("view memberliste", "churchdb")) {
addErrorMessage(t("no.permission.for", t("list.of.members")));
return " ";
}
require_once ASSETS . '/fpdf17/fpdf.php';
$compact = true;
if (isset($_GET["compact"])) {
$compact = $_GET["compact"];
}
// Instanciation of inherited class
$pdf = new PDF('P', 'mm', 'A4');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 9);
$res = home_getMemberList();
$pdf->SetLineWidth(0.4);
$pdf->SetDrawColor(200, 200, 200);
$fields = _home__memberlist_getSettingFields()->fields;
foreach ($res as $p) {
$pdf->Line(8, $pdf->GetY() - 1, 204, $pdf->GetY() - 1);
$pdf->Cell(10, 10, "", 0);
if ($p->imageurl == null || !file_exists("{$files_dir}/fotos/{$p->imageurl}")) {
$p->imageurl = "nobody.gif";
}
$pdf->Image("{$files_dir}/fotos/{$p->imageurl}", $pdf->GetX() - 10, $pdf->GetY() + 1, 9);
$pdf->Cell(2);
$pdf->Cell(13, 9, $p->anrede, 0, 0, 'L');
$pdf->Cell(48, 9, utf8_decode("{$p->name}, {$p->vorname}"), 0, 0, 'L');
$pdf->Cell(45, 9, utf8_decode("{$p->strasse}"), 0, 0, 'L');
// TODO: second occurence of code part - whats this for?
$birthday = "";
if ($p->geburtsdatum != null) {
if ($p->year < 7000) {
$birthday = "{$p->day}.{$p->month}.";
}
if ($p->year != 1004 && $fields["memberlist_birthday_full"]->getValue()) {
if ($p->year < 7000) {
$birthday = $birthday . $p->year;
} else {
$birthday = $birthday . $p->year - 7000;
}
}
}
$pdf->Cell(20, 9, $birthday, 0, 0, 'L');
if ($fields["memberlist_telefonprivat"]->getValue() && $p->telefonprivat != "") {
$pdf->Cell(30, 9, $p->telefonprivat, 0, 0, 'L');
} else {
if ($fields["memberlist_telefongeschaeftlich"]->getValue() && $p->telefongeschaeftlich != "") {
$pdf->Cell(30, 9, $p->telefongeschaeftlich, 0, 0, 'L');
} else {
if ($fields["memberlist_telefongeschaeftlich"]->getValue() && $p->fax != "") {
$pdf->Cell(30, 9, $p->fax . " (Fax)", 0, 0, 'L');
} else {
$pdf->Cell(30, 9, "", 0, 0, 'L');
}
}
}
if ($fields["memberlist_telefonhandy"]->getValue() && $p->telefonhandy != "") {
$pdf->Cell(30, 9, $p->telefonhandy, 0, 0, 'L');
}
// Zeilenumbruch
$pdf->Ln(5);
$pdf->Cell(73);
$pdf->Cell(48, 10, "{$p->plz} " . utf8_decode($p->ort), 0, 0, 'L');
$pdf->Cell(17);
if ($fields["memberlist_email"]->getValue() && $p->email != "") {
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(30, 9, $p->email);
$pdf->SetFont('Arial', '', 9);
}
$pdf->Ln(12);
}
$pdf->Output(t("list.of.members") . '.pdf', 'I');
}
示例8: implode
$mapURL = "http://gisweb2.durhamnc.gov/arcgis/rest/services/SharedMaps/CompassBaseMap/MapServer/export?bbox=" . implode(",", $myFinalExtent) . "&layerDefs=1:id=" . $bgID . "&layers=hide:2&width=800&height=512&format=png&f=image";
} elseif ($reportRadioValue == 'neighborhood') {
$mapURL = "http://gisweb2.durhamnc.gov/arcgis/rest/services/SharedMaps/CompassBaseMap/MapServer/export?bbox=" . implode(",", $myFinalExtent) . "&layerDefs=2:id=" . $nhID . "&layers=hide:1&width=800&height=512&format=png&f=image";
}
// put map image (WMS) on page
// $mapURL = "http://maps.co.mecklenburg.nc.us/geoserver/wms/reflect?layers=meckbase,neighborhoods&width=800&bbox=" . implode(",", $final_extent) . "&srs=EPSG:2264&CQL_FILTER=include;id=" . $neighborhood;
// $mapURL = "http://localhost:8080/geoserver/blockgroups/wms?service=WMS&version=1.1.0&request=GetMap&layers=blockgroups:blockgroups&styles=redOutline&bbox=" . implode(",", $final_extent) . "&width=800&height=512&srs=EPSG:2264&format=image/png&CQL_FILTER=include;id=" . $neighborhood;
// Title page main content
$pdf->Ln(0.25);
$pdf->Cell(0.43);
$pdf->SetTextColor(0, 0, 45);
$pdf->SetFont('Arial', 'B', 40);
$pdf->MultiCell(0, 0.2, "Site Map");
$pdf->Image($mapURL, 0.3, 1.3, 7.9, 7.9, "PNG");
//draw border around map
$pdf->SetLineWidth(0.05);
$pdf->rect(0.3, 1.3, 7.9, 7.9);
/************************************************************
Data Report
************************************************************/
if (strlen($measures[0]) > 0) {
$measureCount = 0;
$mpp = 4;
// measures per page
for ($i = 0; $i < ceil(count($measures) / $mpp); $i++) {
$pdf->AddPage();
if ($measures[$measureCount]) {
createMeasure(0.5, 0.5, $theLayer, $measures[$measureCount], $theID);
}
if ($measures[$measureCount + 1]) {
createMeasure(4.3, 0.5, $theLayer, $measures[$measureCount + 1], $theID);
示例9: date
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(0, 0, 'RASHTREEYA SIKSHANA SAMITHI TRUST', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetX(30);
$pdf->Cell(0, 0, 'R. V. COLLEGE OF ENGINEERING', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetFont('Arial', 'I', 7);
$pdf->SetX(30);
$pdf->Cell(0, 0, '(Autonomous Institute affiliated to Visvesvaraya Technological University, Belgaum)', 0, 0, 'C');
$pdf->Ln(3);
$pdf->SetFont('Arial', 'IU', 7);
$pdf->SetX(30);
$pdf->Cell(0, 0, 'Approved by All India Council for Technical Education, New Delhi.', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetLineWidth(0.4);
$pdf->Line(10, $pdf->GetY(), 200, $pdf->GetY());
$pdf->Ln(1);
$pdf->SetLineWidth(0);
$pdf->Line(10, $pdf->GetY(), 200, $pdf->GetY());
$pdf->Ln(4);
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(0, 0, 'Department of ' . $dep, 0, 0, 'C');
$pdf->Ln(7);
$pdf->SetX(11);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(0, 0, "Ref No: RVCE / 2014 - 2015 ", 0, 0, '');
$pdf->SetFont('Arial', 'B', 10);
//to be changed
$date = date("Y-m-d");
$pdf->Cell(0, 0, 'Date: ' . $date . ' ', 0, 0, 'R');
示例10: COUNT
$pdf->Cell(1, 4, 'Clientes' . $text, 0, 1);
$pdf->Cell(1, 10, "Listado de Morosos Productos con" . $giros . utf8_decode(" o más cuotas vencidas"), 0, 1, 'L');
$pdf->SetFont('Arial', '', 10);
//Connect to database
mysql_select_db($database_tecno, $tecno);
$queryCliente = "SELECT *, COUNT(giro) as giro, CONCAT(nombres,' ', primerApellido) as fullName, CONCAT(telefono,' / ',celular) as telefonos FROM datospersonales, detallescliente, refpersonal, inflaboral WHERE status<>1 AND fechaV <'{$today}' AND datospersonales.id = detallescliente.id AND datospersonales.id = refpersonal.id AND datospersonales.id=inflaboral.id AND inflaboral.ministerio= '{$tpCli}' AND detallescliente.tipo = 1 GROUP BY detallescliente.idArt HAVING COUNT(giro) >= '{$giros}' ORDER BY datospersonales.nombres ASC";
$cliente = mysql_query($queryCliente, $tecno) or die(mysql_error());
$rowCliente = mysql_fetch_assoc($cliente);
$totalRowsCliente = mysql_num_rows($cliente);
if ($totalRowsCliente > 0) {
//Titulos Tabla
$pdf->SetFont('arial', 'B', 8);
$pdf->SetDrawColor(0);
$pdf->SetFillColor(235, 235, 235);
$pdf->SetTextColor(0);
$pdf->SetLineWidth(0.15);
if (isset($imp)) {
$pdf->Cell(48, 6, 'Nombres', 1, 0, 'C', true);
$pdf->Cell(38, 6, 'Tel�fonos', 1, 0, 'C', true);
$pdf->Cell(78, 6, 'Direcci�n', 1, 0, 'C', true);
$pdf->Cell(35, 6, 'Referencia', 1, 0, 'C', true);
$pdf->Cell(20, 6, 'Tel�fono', 1, 0, 'C', true);
$pdf->Cell(43, 6, 'Producto', 1, 0, 'C', true);
$pdf->Cell(20, 6, 'Cuotas Pend.', 1, 0, 'C', true);
$pdf->Cell(17, 6, 'Monto Tot.', 1, 0, 'C', true);
$pdf->Cell(17, 6, 'Pagado', 1, 0, 'C', true);
$pdf->Cell(17, 6, 'Debe', 1, 1, 'C', true);
} else {
$pdf->Cell(48, 6, 'Nombres', 1, 0, 'C', true);
$pdf->Cell(43, 6, 'Producto', 1, 0, 'C', true);
$pdf->Cell(20, 6, 'Cuotas Pend.', 1, 0, 'C', true);
示例11:
/**
* Fonction realisant une croix aux 4 coins des cartes
*
* @param PDF $pdf PDF
* @param int $x1 X1
* @param int $y1 Y1
* @param int $x2 X2
* @param int $y2 Y2
* @param int $epaisseur Epaisseur
* @param int $taille Size
* @return void
*/
function _Croix(&$pdf, $x1 = 0, $y1 = 0, $x2 = 210, $y2 = 297, $epaisseur = 1, $taille = 4)
{
$pdf->SetDrawColor(192, 192, 192);
$pdf->SetLineWidth($epaisseur);
$lg = $taille / 2;
// croix haut gauche
$pdf->Line($x1, $y1 - $lg, $x1, $y1 + $lg);
$pdf->Line($x1 - $lg, $y1, $x1 + $lg, $y1);
// croix bas gauche
$pdf->Line($x1, $y2 - $lg, $x1, $y2 + $lg);
$pdf->Line($x1 - $lg, $y2, $x1 + $lg, $y2);
// croix haut droit
$pdf->Line($x2, $y1 - $lg, $x2, $y1 + $lg);
$pdf->Line($x2 - $lg, $y1, $x2 + $lg, $y1);
// croix bas droit
$pdf->Line($x2, $y2 - $lg, $x2, $y2 + $lg);
$pdf->Line($x2 - $lg, $y2, $x2 + $lg, $y2);
$pdf->SetDrawColor(0, 0, 0);
}
示例12:
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetTextColor(0);
//$temp = str_replace(' ', ' ', PRINT_INVOICE_ORDERNR);
$pdf->Text(20, 95, PRINT_INVOICE_HEADING);
// Rechnungsdatum
$temp = str_replace(' ', ' ', PRINT_INVOICE_DATE);
$pdf->Text(165, 95, $temp . tep_date_short($order->info['date_purchased']));
// Fälligkeitsdatum
//$temp2 = str_replace(' ', ' ', ENTRY_INVOICE_DATE_ZAHLBAR);
//$pdf->Text(171,99,$temp2 . tep_date_short_add($order->info['date_purchased'], 'day' , ZAHLUNGSFAELLIGKEIT));
// Falzmarke
$pdf->SetY(105);
$pdf->SetX(20);
$x = 10;
$y = $pdf->GetY();
$pdf->SetLineWidth(0.25);
$pdf->Line($x, $y, $this->w - $this->rMargin, $y);
// Rechnungstext 1
$pdf->SetFont('Arial', '', 8);
$pdf->SetTextColor(0);
$pdf->SetY(100);
$pdf->Cell(15);
$text['edit_invoice_text'] = str_replace("<br>", '', $text['edit_invoice_text']);
$pdf->MultiCell(200, 4, $text['edit_invoice_text'], 0, 'L');
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetTextColor(0);
// Auftragsnummer
$temp = str_replace(' ', ' ', ENTRY_INVOICE_AUFTRAG_ID);
$pdf->Text(20, 120, $temp . tep_db_input($oID));
// Kundenummer
$temp = str_replace(' ', ' ', ENTRY_INVOICE_COSTUMER_ID);
示例13: action_template
public function action_template($id = null, $data, $name)
{
if ($id and $data and $name) {
define('FPDF_FONTPATH', '../fuel/app/views/fonts');
$pdf = new PDF('P', 'pt', array(595.28, 841.89));
$pdf->AddFont('Verdana');
$pdf->SetLineWidth(0.1);
$pdf->SetAutoPageBreak(true, 80);
$pdf->action = explode(',', $data);
$pdf->init($id);
$pdf->Output('Graph:' . $pdf->device->hostname . '.pdf', 'I');
}
}