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


PHP PDF::ln方法代码示例

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


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

示例1: PDF

<?php

require 'mc_indent.php';
$InterLigne = 7;
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetMargins(30, 10, 30);
$pdf->SetFont('Arial', '', 12);
$txt = "Cher Pierre";
$txtLen = $pdf->GetStringWidth($txt);
$milieu = (210 - $txtLen) / 2;
$pdf->SetX($milieu);
$pdf->Write(5, $txt);
$pdf->ln(30);
$txt = "Voici venu le temps pour toi de renouveler ta licence-assurance, en effet celle-ci expire le 28/9 prochain. Tu trouveras joint à ce document le certificat d'aptitude à faire remplir par le médecin.";
$pdf->MultiCell(0, $InterLigne, $txt, 0, 'J', 0, 15);
$pdf->ln(10);
$txt = "Je me permets de te rappeler que cette licence est obligatoire et nécessaire à la pratique de notre sport favori, tant à l'occasion de nos entraînements qu'à toutes autres manifestations auxquelles tu peux participer telles que compétitions, cours fédéraux ou visites amicales dans un autre club.";
$pdf->MultiCell(0, $InterLigne, $txt, 0, 'J', 0, 15);
$pdf->ln(10);
$txt = "Dès lors, je te saurais gré de bien vouloir me retourner le certificat d'aptitude dûment complété par le médecin accompagné de ton paiement de 31 € ou de la preuve de celui-ci par virement bancaire. Le tout dans les plus brefs délais afin de ne pas interrompre la couverture de ladite assurance et par la même occasion de t'empêcher de participer à nos cours le temps de la régularisation. Il y va de ta sécurité.";
$pdf->MultiCell(0, $InterLigne, $txt, 0, 'J', 0, 15);
$pdf->ln(10);
$txt = "Merci de la confiance que tu mets en notre club pour ton épanouissement sportif.";
$pdf->MultiCell(0, $InterLigne, $txt, 0, 'J', 0, 15);
$pdf->ln(10);
$txt = "Le comité";
$pdf->MultiCell(0, $InterLigne, $txt, 0, 'R', 0);
$pdf->Output();
开发者ID:rohmad-st,项目名称:fpdf,代码行数:29,代码来源:ex.php

示例2: switch

$pdf->AliasNbPages();
$pdf->AddPage();
//Títulos das colunas
$pdf->SetFont('Arial', 'B', 10);
//Define a cor RGB do fundo da celula
$pdf->SetFillColor(178, 178, 178);
//Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
$pdf->Cell(0, 6, 'Descrição do Momento de Repertório', 1, 0, 'L', 1);
$pdf->SetX(170);
$pdf->Cell(0, 6, 'Ativo');
//Monta as linhas com os dados da query
$pdf->SetFont('Arial', '', 10);
while ($dados = mysql_fetch_array($sql)) {
    switch ($dados[ativo]) {
        case 0:
            $ativo = "Inativo";
            break;
        case 1:
            $ativo = "Ativo";
            break;
    }
    $pdf->ln();
    $pdf->Cell(0, 5, $dados['nome']);
    $pdf->SetX(170);
    $pdf->Cell(0, 5, $ativo);
}
$pdf->SetFont('Arial', 'B', 8);
$pdf->ln();
$pdf->Cell(0, 6, 'Total de registros listados: ' . $registros, 'T');
//Gera o PDF
$pdf->Output();
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:CategoriaRepertorioRelatorioPDF.php

示例3: Booking

include_once 'bookingclass.inc.php';
$booking = new Booking();
$bookid = $request->GetVar('bookid', 'get');
$bookdata = $booking->getMeldedata($bookid);
define('FPDF_FONTPATH', $fontpath);
include_once 'fpdf.php';
include_once 'pdf.php';
$fonttype = 'times';
$pdf = new PDF();
$pdf->Open();
$pdf->SetTitle('ZVS Meldeschein');
$pdf->SetAuthor($request->GetVar('hotel_name', 'session'));
$pdf->SetCreator('ZVS');
$pdf->AliasNbPages();
$pdf->AddPage(P);
$pdf->ln(5);
$y = $pdf->GetY();
// Address
$pdf->SetFont($fonttype, 'B', 10);
$pdf->Write(5, $request->GetVar('hotel_name', 'session'));
$pdf->ln(4);
$pdf->SetFont($fonttype, '', 10);
$pdf->Write(5, $request->GetVar('hotel_street', 'session'));
$pdf->ln(4);
$pdf->SetFont($fonttype, '', 10);
$pdf->Write(5, $request->GetVar('hotel_zip', 'session') . " " . $request->GetVar('hotel_city', 'session'));
// Headline
$pdf->SetXY(120, $y);
$pdf->SetFont($fonttype, 'B', 12);
$pdf->Write(5, "Meldeschein für Beherbergungsstätten");
$pdf->SetXY(120, $y + 5);
开发者ID:BackupTheBerlios,项目名称:zvs,代码行数:31,代码来源:meldescheinpdf.php

示例4: array

   $city = "chennai";

$total_due = 1000;
$taxs = 500;
$total_due= "$".number_format($total_due, 2, '.', ','); 

$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$name"); 
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$stnoname");
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$city $prov $postal");
$pdf->ln(15);

$head_valur = array("Header","Amount");
$caption = array();
$caption1["header"][] = "Settlement  Period \n".$_SESSION['startdate']." to ".$_SESSION['todate'];
$caption["price"][] = "$909.34";
$pdf->SetFont('Helvetica','B',10);
$settel2 = $_SESSION['startdate']." to ".$_SESSION['todate'];


/* query for previous balance */

//$chk_prev_bal = mysql_query("SELECT billno,ROUND( (bill_amount-received_amount) , 1 ) as bal_amt FROM `ddc_bill_records` WHERE customer_id = ".$_POST['cus_already_bill']." and (bill_amount-received_amount) != 0 and (id <= '".$result_id['id']."' && id != '".$result_id['id']."')");

//echo "SELECT billno,ROUND( (bill_amount-received_amount) , 1 ) as bal_amt FROM `ddc_bill_records` WHERE customer_id = ".$_POST['cus_already_bill']." and (bill_amount-received_amount) != 0 and (id <= '".$result_id['id']."' && id != '".$result_id['id']."')";
开发者ID:hari4you,项目名称:hackrmz,代码行数:30,代码来源:view_bill.php

示例5:

 $sql_formando = mysql_query("SELECT \n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.nome,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.cpf,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.endereco,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.complemento,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.bairro,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.uf,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.cep,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tform.observacoes,\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tcid.nome as cidade_nome\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM eventos_formando form\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT OUTER JOIN cidades cid ON cid.id = form.cidade_id\n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE form.id = {$PessoaId}");
 //Verifica o numero de registros retornados
 $registros = mysql_num_rows($sql_formando);
 //Verifica a quantidade de registros
 if ($registros == 0) {
     //Exibe a mensagem que não foram encontrados registros
     $pdf->SetFont('Arial', 'B', 9);
     $pdf->Cell(0, 6, 'Não há formandos cadastrados para este evento !', 1, 0, 'L');
     //Caso tiver
 } else {
     $dados_formando = mysql_fetch_array($sql_formando);
     $total_formando = 0;
     //Imprime os dados do formando
     $pdf->SetFont('Arial', 'B', 12);
     $pdf->Cell(110, 6, $dados_formando['nome'], 'LTR', 0, 'L');
     $pdf->ln();
     $pdf->SetFont('Arial', 'B', 9);
     $pdf->Cell(110, 5, 'CPF: ' . $dados_formando['cpf'], 'LR', 0, 'L');
     $pdf->ln();
     $pdf->Cell(110, 5, $dados_formando['endereco'], 'LR', 0, 'L');
     $pdf->ln();
     $pdf->Cell(110, 5, $dados_formando['bairro'], 'LR', 0, 'L');
     $pdf->ln();
     $pdf->Cell(110, 5, $dados_formando['cidade_nome'] . ' - ' . $dados_formando['uf'], 'LR', 0, 'L');
     $pdf->ln();
     $pdf->Cell(110, 5, 'CEP: ' . $dados_formando['cep'], 'LBR', 0, 'L');
     $pdf->ln(25);
     $pdf->SetX(50);
     $pdf->SetFont('Arial', 'B', 12);
     $pdf->Cell(76, 8, 'AVISO DE RECEBIMENTO', 1, 0, 'C');
     $pdf->SetFont('Arial', 'B', 16);
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:FormularioAR.php

示例6:

 $aux = 10;
 $contador = 0;
 $ruta = 'logo.jpg';
 $pdf->Image($ruta, 10, 5, 18, 20);
 $pdf->SetFont('Arial', 'B', 15);
 $pdf->Cell(80);
 $pdf->Cell(30, 10, $x1, 0, 0, 'C');
 $pdf->Ln();
 $pdf->SetFont('Times', '', 10);
 $pdf->Cell(180, 4, 'Año Escolar: 2008', 0, 1, 'R');
 //$pdf->Ln();
 $pdf->Cell(180, 4, 'Informe Anual', 0, 1, 'R');
 $pdf->Ln();
 $pdf->Cell(0, 4, '             Reconocido Oficialmente por el Ministerio de Educación de la República de Chile según decreto Nº1052 del año 1997 ', 0, 1, 'L');
 $pdf->Cell(0, 4, ' Rol Base de Datos 14416-9.-', 0, 1, 'L');
 $pdf->ln();
 $apellidop = $row2["apellidop"];
 $apellidom = $row2["apellidom"];
 $nombres = $row2["nombres"];
 $rut = $row2["rut"];
 $fill = 1;
 //$pdf->SetTextColor(255);
 $pdf->SetFillColor(210);
 $pdf->Cell(0, 5, 'Datos Alumno:', 1, 1, 1, $fill);
 $pdf->SetTextColor(0);
 $pdf->Cell(30, 4, 'Alumno(a): ', 1, 0, 'R');
 $pdf->Cell(0, 4, $apellidop . " " . $apellidom . " " . $nombres, 1, 1, 'L');
 $pdf->Cell(30, 4, 'R.U.T. :', 1, 0, 'R');
 $pdf->Cell(0, 4, $rut, 1, 1, 'L');
 $pdf->Cell(30, 4, 'Curso :', 1, 0, 'R');
 $pdf->Cell(0, 4, mostrar_curso($curso), 1, 1, 'L');
开发者ID:ranmadxs,项目名称:dorcl,代码行数:31,代码来源:libretaf.php

示例7: DataMySQLRetornar

$edtPedidoId = $_GET["PedidoId"];
//Imprime o logotipo da empresa
$pdf->Image('../image/logo_consoli2.jpg', 10, 10, 34);
//Ajusta a fonte
$pdf->SetFont('Arial', 'B', 15);
$pdf->Cell(0, 6, $empresaNome, 0, 0, 'R');
$pdf->SetFont('Arial', '', 9);
$pdf->Ln();
$pdf->Cell(0, 4, 'Rua São Bento, 289 - Bairro Progresso - Rio do Sul - SC - CEP: 89160-000', 0, 0, 'R');
$pdf->Ln();
$pdf->Cell(0, 4, 'Fone: (47) 3520-1650 - consoli@consolieventos.com.br', 0, 0, 'R');
$pdf->Ln(14);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 7, 'Pedido de Foto e Vídeo Nro ' . $dados_pedido["id"], 0, 0);
$pdf->ln();
$pdf->SetFont('Arial', 'B', 11);
$pdf->Cell(0, 5, 'Emissão: ' . DataMySQLRetornar($dados_pedido["data"]) . ' Por: ' . $dados_pedido["usuario_nome"], 0, 0);
$pdf->ln();
$pdf->SetFont('Arial', 'B', 11);
$pdf->Cell(0, 5, 'Data da Venda: ' . DataMySQLRetornar($dados_pedido["data_venda"]), 0, 0);
$pdf->ln(8);
$pdf->SetFont('Arial', 'B', 11);
$pdf->Cell(0, 6, 'Formando:', 1, 0, 'L', 1);
$pdf->ln();
$pdf->SetFont('Arial', '', 10);
$pdf->Multicell(0, 5, '[' . $dados_pedido["formando_id"] . '] - ' . $dados_pedido["formando_nome"] . "\n[" . $dados_pedido["evento_id"] . '] - ' . $dados_pedido["evento_nome"], 1);
$pdf->ln(3);
$pdf->SetFont('Arial', 'B', 11);
$pdf->Cell(0, 6, 'Observações do Pedido:', 1, 0, 'L', 1);
$pdf->ln();
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:FotoVideoPedidoRelatorioPDF.php

示例8: foreach

 $no = 1;
 if ($varCek == 0) {
     $pdf->Cell(($cols + 23) / 100 * $width, $height, $_SESSION['lang']['dataempty'], TBRL, 1, 'C', 1);
 } else {
     foreach ($dtKodebarang as $dtKdbrg) {
         $nor++;
         $pdf->Cell(8 / 100 * $width, $height, $nor, TBRL, 0, 'C', 1);
         $pdf->Cell($wkiri / 100 * $width, $height, $nmUraian[$dtKdbrg], TBRL, 0, 'L', 1);
         $pdf->Cell(15 / 100 * $width, $height, $nmSatuan[$dtKdbrg], TBRL, 0, 'C', 1);
         $pdf->Cell($wlain / 100 * $width, $height, number_format($lstJumlah[$dtKdbrg], 0), 1, 0, 'R', 1);
         $pdf->Cell($wlain / 100 * $width, $height, number_format($lstRupiah[$dtKdbrg], 2), 1, 0, 'R', 1);
         $pdf->Cell($wlain / 100 * $width, $height, number_format($lstJumlahSbi[$dtKdbrg], 0), 1, 0, 'R', 1);
         $pdf->Cell($wlain / 100 * $width, $height, number_format($lstRupiahSbi[$dtKdbrg], 2), 1, 1, 'R', 1);
     }
 }
 $pdf->ln(20);
 if ($varCek2 == 0) {
     $pdf->Cell(($cols + 23) / 100 * $width, $height, $_SESSION['lang']['dataempty'], TBRL, 1, 'C', 1);
 } else {
     $height = 15;
     $height = 20;
     $pdf->SetFillColor(220, 220, 220);
     $pdf->SetFont('Arial', 'B', 12);
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Cell(8 / 100 * $width, $height, 'No.', TRL, 0, 'C', 1);
     $pdf->Cell($wkiri / 100 * $width, $height, 'Uraian', TRL, 0, 'C', 1);
     $pdf->Cell(15 / 100 * $width, $height, $_SESSION['lang']['satuan'], TRL, 0, 'C', 1);
     $pdf->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $pdf->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 1, 'C', 1);
     $pdf->Cell(8 / 100 * $width, $height, ' ', BRL, 0, 'C', 1);
     $pdf->Cell($wkiri / 100 * $width, $height, '', BRL, 0, 'C', 1);
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:lbm_slave_pks_kimiadanbbm.php

示例9:

}
foreach ($alumnos as $rut => $alumno) {
    $pjefe = $datos_curso['pjefe'];
    $pdf->AddPage();
    $pdf->Image($ruta, 10, 5, 18, 20);
    $pdf->SetFont('Arial', 'B', 15);
    $pdf->Cell(80);
    $pdf->Cell(30, 10, $nombre_colegio, 0, 0, 'C');
    $pdf->Ln();
    $pdf->SetFont('Times', '', 10);
    $pdf->Cell(180, 4, 'Año Escolar: ' . $_SESSION['base_datos']->anio, 0, 1, 'R');
    $pdf->Cell(180, 4, 'Informe Anual', 0, 1, 'R');
    $pdf->Ln();
    $pdf->Cell(0, 4, '             Reconocido Oficialmente por el Ministerio de Educación de la República de Chile según decreto Nº' . $_SESSION['colegio']->col_decreto . ' del año ' . $_SESSION['colegio']->col_anio . ' ', 0, 1, 'L');
    $pdf->Cell(0, 4, ' Rol Base de Datos ' . $rbd, 0, 1, 'L');
    $pdf->ln();
    $apellidop = $alumno['dato_alumno']['apellidop'];
    $apellidom = $alumno['dato_alumno']['apellidom'];
    $nombres = $alumno['dato_alumno']['nombres'];
    $fill = 1;
    $pdf->SetFillColor(210);
    $pdf->Cell(0, 5, 'Datos Alumno:', 1, 1, 1, $fill);
    $pdf->SetTextColor(0);
    $pdf->Cell(30, 4, 'Alumno(a): ', 1, 0, 'R');
    $pdf->Cell(0, 4, $apellidop . " " . $apellidom . " " . $nombres, 1, 1, 'L');
    $pdf->Cell(30, 4, 'R.U.T. :', 1, 0, 'R');
    $pdf->Cell(0, 4, $rut, 1, 1, 'L');
    $pdf->Cell(30, 4, 'Curso :', 1, 0, 'R');
    $pdf->Cell(0, 4, mostrar_curso($curso, true), 1, 1, 'L');
    $pdf->Cell(30, 4, 'Profesor Jefe :', 1, 0, 'R');
    $pdf->Cell(0, 4, $pjefe, 1, 1, 'L');
开发者ID:ranmadxs,项目名称:dorcl,代码行数:31,代码来源:PROF-certificadoNotas_respaldo.php

示例10: PDF

    }
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('Work Eventos - CopyRight(c) - Work Labs Tecnologia - www.worklabs.com.br');
$pdf->SetAuthor($usuarioNome . ' - ' . $empresaNome);
$pdf->SetTitle('Detalhamento do Evento');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
//Cria a página do relatório
$pdf->AddPage();
//Nova linha
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(0, 7, $dados_evento['nome'], 1, 0, 'C');
$pdf->ln(4);
//Nova linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Detalhamento do Evento', 1, 0, 'C', 1);
$pdf->SetFont('Arial', 'I', 9);
$pdf->ln();
$pdf->MultiCell(0, 4, $dados_evento['descricao'], 1);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 4, 'Tipo:', 1, 0, 'L');
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetX(35);
$pdf->Cell(0, 4, $desc_tipo, 0, 0, 'L');
$pdf->ln();
//Nova linha
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:EventoDetalheRelatorioPDF.php

示例11: switch

$soma_fechado = 0;
$quebra = 0;
while ($dados = mysql_fetch_array($sql)) {
    switch ($dados[status]) {
        case 0:
            $desc_status = "Em Aberto";
            $soma_aberto++;
            break;
        case 1:
            $desc_status = "Concluído";
            $soma_fechado++;
            break;
    }
    //Verifica a quebra
    if ($quebra != $dados["evento_id"]) {
        $pdf->ln(8);
        $pdf->SetFont("Arial", "B", 14);
        $pdf->Cell(0, 7, '(' . $dados["evento_id"] . ') - ' . $dados["evento_nome"], 'T');
        $pdf->SetFont("Arial", "", 10);
        $pdf->ln(4);
    }
    $pdf->ln();
    $pdf->Cell(26, 5, $desc_status);
    $pdf->SetFont("Arial", "B", 10);
    $pdf->Cell(80, 5, $dados["atividade_nome"]);
    $pdf->SetFont("Arial", "", 10);
    $pdf->Cell(14, 5, $dados["atividade_dias"], 0, 'C');
    $pdf->Cell(30, 5, DataMySQLRetornar($dados["data_prazo"]));
    if ($dados["data_execucao"] != '0000-00-00') {
        $pdf->Cell(30, 5, DataMySQLRetornar($dados["data_execucao"]));
    } else {
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:EventoRelatorioAtividadePDF.php

示例12:

 $pdf->Image($maindir . 'assets/img/Encabezado de documentos.jpg', 0.4, 0.05, 20.96, 3.22, 'JPG');
 $pdf->Image($maindir . "assets/img/Pie de documentos.jpg", 0.4, 21.6, 20.88, 13.7, 'JPG');
 $pdf->SetRightMargin(1.0);
 $pdf->SetLeftMargin(1.0);
 $pdf->SetFont('Calibri', 'B', 11);
 $pdf->Cell(0, -0.45, utf8_decode("FACULTAD DE CIENCIAS JURÍDICAS    "), 0, 0, 'R');
 $pdf->Ln(0.2);
 $pdf->SetFont('Arial', '', 10);
 $pdf->Cell(0, 0, utf8_decode("Teléfono: 2232-2290    "), 0, 1, 'R');
 $pdf->Ln(0.41);
 $pdf->Cell(0, 0, utf8_decode("Edificio A-2    "), 0, 1, 'R');
 $pdf->Ln(0.41);
 $pdf->Cell(0, 0, utf8_decode("Ciudad Universitaria    "), 0, 1, 'R');
 $pdf->Ln(0.41);
 $pdf->Cell(0, 0, utf8_decode("Tegucigalpa, Honduras    "), 0, 1, 'R');
 $pdf->ln(4);
 $pdf->SetFont('Cambria', 'BI', 18);
 $pdf->Cell(0, 0, utf8_decode("C E R T I F I C A C I O N"), 0, 1, 'C');
 $pdf->Ln(1.9);
 $pdf->SetFont('Cambria', 'I', 14);
 $pdf->SetLeftMargin(2.2);
 $pdf->SetRightMargin(2.2);
 $pdf->newFlowingBlock(17.0, 1.0, 0, 'J');
 $pdf->SetFont('Cambria', 'I', 14);
 $pdf->WriteFlowingBlock(utf8_decode('El Suscrito, Secretario de la Facultad de Ciencias Jurídicas de la Universidad Nacional ' . 'Autónoma de Honduras, '));
 $pdf->SetFont('Cambria', 'BI', 14);
 $pdf->WriteFlowingBlock(utf8_decode('CERTIFICA: '));
 $pdf->SetFont('Cambria', 'I', 14);
 $pdf->WriteFlowingBlock(utf8_decode('Que la firma de la Abogada '));
 $pdf->SetFont('Cambria', 'BI', 14);
 $pdf->WriteFlowingBlock(utf8_decode($abogado));
开发者ID:Joshuabenitez,项目名称:Proyecto-industria,代码行数:31,代码来源:ConstanciaPPS.php

示例13: date

         $this->SetY(-15);
         $this->SetFont('Arial', 'I', 8);
         $this->Cell(376, 0, "", 1, 1);
         $anio = date("Y");
         $this->Cell(376, 4, utf8_decode("Sistema de Control de Alquiler " . $anio . " © Todos los derechos reservados | Desarrollado por Ronald Nina Layme "), 0, 1, "C");
     }
 }
 $pdf = new PDF("L", "mm", array(220, 396));
 //$pdf=new FPDF("L","mm",array(306,396));
 $borde = 0;
 $pdf->SetAutoPageBreak(true, 15);
 $pdf->AddPage();
 $pdf->SetFont("Arial", "BU", 29);
 $pdf->SetFillColor(234, 234, 234);
 $pdf->Cell(376, 10, "RECIBO DE ALQUILER", $borde, 0, "C");
 $pdf->ln(25);
 $pdf->SetFont("Arial", "B", 12);
 $pdf->Cell(100, 10, "Nombre", 1, 0, "C");
 $pdf->Cell(30, 10, "C.I.:", 1, 0, "C");
 $pdf->Cell(30, 10, "", $borde, 0, "C");
 $pdf->Cell(45, 10, utf8_decode("Fecha de Emisión"), 1, 0, "C");
 $pdf->Cell(30, 10, "", $borde, 0, "C");
 $pdf->Cell(50, 10, "Codigo de Control", 1, 0, "C");
 $pdf->Cell(30, 10, "", $borde, 0, "C");
 $pdf->Cell(50, 10, utf8_decode("Fecha Próximo Pago"), 1, 0, "C");
 $pdf->ln(10);
 $pdf->SetFont("Arial", "", 12);
 $pdf->Cell(100, 10, mb_strtoupper($arren['NombreEsposo']), "LR", 0, "L");
 $pdf->Cell(30, 10, mb_strtoupper($arren['CiEsposo']), "LR", 0, "C");
 $pdf->Cell(30, 10, "", $borde, 0, "C");
 $pdf->Cell(45, 10, date("d/m/Y H:i:s"), 1, 0, "C");
开发者ID:kailIII,项目名称:alquiler,代码行数:31,代码来源:recibo.php

示例14: import

 /**
  * Internal function to return the cover for publishing a research
  * @param $sectionEditorSubmission SectionEditorSubmission
  * @return string path to cover created
  */
 function &_generateCover($sectionEditorSubmission)
 {
     $journal =& Request::getJournal();
     import('classes.lib.tcpdf.pdf');
     import('classes.lib.tcpdf.tcpdf');
     Locale::requireComponents(array(LOCALE_COMPONENT_APPLICATION_COMMON, LOCALE_COMPONENT_OJS_EDITOR, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_PKP_USER));
     $pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
     // No header and footer for this document
     $pdf->SetPrintHeader(false);
     $pdf->SetPrintFooter(false);
     $pdf->SetCreator(PDF_CREATOR);
     $pdf->SetAuthor($journal->getJournalTitle());
     // set margins
     $pdf->SetMargins(PDF_MARGIN_LEFT, 20, PDF_MARGIN_RIGHT);
     // set auto page breaks
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     // set image scale factor
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     // Right now this cover page is only in english, but the english translation keys are ready
     $pdf->AddPage();
     $pdf->SetFont('dejavusans', 'B', 14);
     $pdf->MultiCell(0, 6, 'Final Technical Report', 0, 'C');
     // Locale::translate('editor.finalReport')
     $pdf->ln();
     $pdf->ln();
     $pdf->MultiCell(0, 6, 'for', 0, 'C');
     // Locale::translate('editor.finalReport.for')
     $pdf->ln();
     $pdf->ln();
     $pdf->MultiCell(0, 6, 'Research Project', 0, 'C');
     // Locale::translate('editor.finalReport.researchProject')
     $pdf->ln();
     $pdf->ln();
     $pdf->ln();
     $pdf->ln();
     $abstract = $sectionEditorSubmission->getAbstractByLocale('en_US');
     // Right now, considering only the english language
     $pdf->SetFont('dejavusans', 'B', 16);
     $pdf->MultiCell(0, 6, $abstract->getScientificTitle(), 0, 'C');
     $pdf->ln();
     $authors = $sectionEditorSubmission->getAuthors();
     $coInvestigatorsString = (string) '';
     $pInvestigatorsString = (string) '';
     foreach ($authors as $author) {
         if (!$author->getPrimaryContact()) {
             if ($coInvestigatorsString == '') {
                 $coInvestigatorsString = $author->getFullName() . ' (' . $author->getAffiliation() . ')';
             } else {
                 $coInvestigatorsString = $coInvestigatorsString . ', ' . $author->getFullName() . ' (' . $author->getAffiliation() . ')';
             }
         } else {
             $pInvestigatorsString = $author->getFullName() . ' (' . $author->getAffiliation() . ')';
         }
     }
     $pdf->SetFont('dejavusans', '', 16);
     $pdf->MultiCell(0, 6, 'Principal Investigator: ' . $pInvestigatorsString, 0, 'C');
     // Locale::translate('user.role.primaryInvestigator')
     if ($coInvestigatorsString != '') {
         $pdf->MultiCell(0, 6, 'Co-Investigator(s): ' . $coInvestigatorsString, 0, 'C');
         // Locale::translate('user.role.coinvestigator')
     }
     $pdf->ln();
     $pdf->ln();
     $pdf->ln();
     $pdf->ln();
     $pdf->SetFont('dejavusans', 'B', 16);
     $pdf->MultiCell(0, 6, $sectionEditorSubmission->getProposalId(), 0, 'C');
     $pdf->ln();
     $pdf->ln();
     $decision = $sectionEditorSubmission->getLastSectionDecision();
     $pdf->MultiCell(0, 0, date("F Y", strtotime($decision->getDateDecided())), 0, 'L', 0, 1, '', 250, true);
     $pdf->Image("public/site/images/mainlogo.png", 'C', 230, 40, '', '', false, 'C', false, 300, 'R', false, false, 0, false, false, false);
     $pdf->AddPage();
     $pdf->SetFont('dejavusans', 'B', 14);
     $pdf->MultiCell(0, 6, 'Final Technical Report', 0, 'C');
     // Locale::translate('editor.finalReport')
     $pdf->ln();
     $pdf->ln();
     $pdf->SetFont('dejavusans', 'B', 12);
     $pdf->MultiCell(0, 6, 'Disclaimer', 0, 'C');
     // Locale::translate('editor.finalReport.disclaimer')
     $pdf->ln();
     $pdf->ln();
     $pdf->SetFont('dejavusans', '', 11);
     $pdf->writeHTMLCell(0, 6, '', '', $journal->getSetting('reportDisclaimer'), 0, 0, false, true, 'J');
     $filePath = Config::getVar('files', 'files_dir') . '/articles/' . $sectionEditorSubmission->getArticleId() . '/public/';
     if (!FileManager::fileExists($filePath, 'dir')) {
         FileManager::mkdirtree($filePath);
     }
     $pdf->Output($filePath . 'tempCover.pdf', 'F');
     return $filePath;
 }
开发者ID:JovanyJeff,项目名称:hrp,代码行数:97,代码来源:SectionEditorAction.inc.php

示例15: savePdf

 function savePdf()
 {
     $meeting =& $this->meeting;
     $meetingAttendanceDao =& DAORegistry::getDAO("MeetingAttendanceDAO");
     $meetingAttendances =& $meetingAttendanceDao->getMeetingAttendancesByMeetingId($meeting->getId());
     $suppGuestNames = $this->getData("suppGuestName");
     $suppGuestAffiliations = $this->getData("suppGuestAffiliation");
     $meetingDateTime = date("d F Y g:ia", strtotime($meeting->getDate()));
     $meetingDate = date("d F Y", strtotime($meeting->getDate()));
     $details = Locale::translate('editor.meeting.attendanceReport.intro1') . ' ' . $this->getData("venue") . ' ' . Locale::translate('common.date.on') . ' ' . $meetingDateTime . ' ' . Locale::translate('editor.meeting.attendanceReport.intro2') . ' ' . $this->quorum . ' ' . Locale::translate('editor.meeting.attendanceReport.intro3') . ' ' . $this->getData('adjourned') . ".";
     $journal = Request::getJournal();
     $user = Request::getUser();
     import('classes.lib.tcpdf.pdf');
     $pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
     $pdf->SetCreator(PDF_CREATOR);
     $pdf->SetAuthor($user->getFullName());
     $pdf->SetTitle($journal->getJournalTitle());
     $pdf->SetSubject($meeting->getPublicId() . ' - ' . Locale::translate('editor.minutes.attendance'));
     // set default header data
     $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE . ' 020', 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, 58, 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);
     $pdf->AddPage();
     $pdf->SetFont('dejavusans', 'B', 13);
     $sectionDao =& DAORegistry::getDAO("SectionDAO");
     $erc =& $sectionDao->getSection($meeting->getUploader());
     $pdf->SetFont('dejavusans', 'I', 13);
     $pdf->MultiCell(0, 6, $erc->getSectionTitle(), 0, 'C');
     $pdf->MultiCell(0, 6, Locale::translate('editor.meeting.attendanceReport.meetingDate') . ' ' . $meetingDate, 0, 'C');
     $pdf->ln();
     $memberCount = 0;
     $pdf->SetFont('dejavusans', 'BU', 12);
     $pdf->MultiCell(0, 6, Locale::translate('editor.meeting.attendanceReport.membersPresent'), 0, 'L');
     $pdf->ln();
     $pdf->SetFont('dejavusans', '', 12);
     foreach ($meetingAttendances as $meetingAttendance) {
         if ($meetingAttendance->getWasPresent() == 1) {
             $member =& $meetingAttendance->getUser();
             $pdf->MultiCell(0, 6, $member->getFullName(), 0, 'L');
             $memberCount++;
         }
     }
     if ($memberCount == 0) {
         $pdf->MultiCell(0, 6, Locale::translate('common.none'), 0, 'L');
     }
     $pdf->ln();
     $memberCount = 0;
     $pdf->SetFont('dejavusans', 'BU', 12);
     $pdf->MultiCell(0, 6, Locale::translate('editor.meeting.attendanceReport.membersAbsent'), 0, 'L');
     $pdf->ln();
     $pdf->SetFont('dejavusans', '', 12);
     foreach ($meetingAttendances as $meetingAttendance) {
         if ($meetingAttendance->getWasPresent() == 2) {
             $member =& $meetingAttendance->getUser();
             $pdf->MultiCell(0, 6, $member->getFullName() . ' (' . Locale::translate('editor.meeting.attendanceReport.reasonForAbsence') . ' ' . $meetingAttendance->getReasonForAbsence() . ')', 0, 'L');
             $memberCount++;
         }
     }
     if ($memberCount == 0) {
         $pdf->MultiCell(0, 6, Locale::translate('common.none'), 0, 'L');
     }
     $pdf->ln();
     if (count($suppGuestNames) > 0) {
         $suppGuestCount = 0;
         foreach ($suppGuestNames as $key => $guest) {
             if ($guest != "" && $guest != null) {
                 if ($suppGuestCount == 0) {
                     $pdf->SetFont('dejavusans', 'BU', 12);
                     $pdf->MultiCell(0, 6, Locale::translate('editor.meeting.attendanceReport.suppGuest'), 0, 'L');
                     $pdf->ln();
                     $pdf->SetFont('dejavusans', '', 12);
                 }
                 $pdf->MultiCell(0, 6, $guest . ' (' . $suppGuestAffiliations[$key] . ')', 0, 'L');
                 $suppGuestCount++;
             }
         }
         $pdf->ln();
     }
     $pdf->MultiCell(0, 6, $details, 0, 'L');
     $pdf->ln();
     if ($this->getData("announcements")) {
         $pdf->SetFont('dejavusans', 'BU', 12);
         $pdf->MultiCell(0, 6, Locale::translate('editor.meeting.attendanceReport.announcements'), 0, 'L');
         $pdf->ln();
         $pdf->SetFont('dejavusans', '', 12);
         $pdf->MultiCell(0, 6, $this->getData("announcements"), 0, 'L');
         $pdf->ln();
     }
     $pdf->SetFont('dejavusans', 'BU', 12);
//.........这里部分代码省略.........
开发者ID:JovanyJeff,项目名称:hrp,代码行数:101,代码来源:AttendanceForm.inc.php


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