コード例 #1
0
ファイル: testcomposer.php プロジェクト: ericilahf/WF3
<?php

include_once 'vendor/setasign/fpdf/fpdf.php';
$pdf = new fpdf();
$pdf->addPage();
$pdf->setFont('arial', '', 22);
$pdf->Cell(190, 10, 'Hello les moutons!!!!!', 0, 1, 'C');
$pdf->Output();
//echo "ok";
コード例 #2
0
ファイル: test_composer.php プロジェクト: borsalino02/WF3
<?php

include_once 'vendor/setasign/fpdf/fpdf.php';
$pdf = new fpdf();
// nouveau document PDF
$pdf->addPage();
//ajout d'une page blanche
$pdf->setFont('arial', '', 36);
$pdf->Cell(190, 10, 'Bienvenue au Zoo Webforce 3', 0, 1, 'c');
$pdf->setTextColor(255, 0, 0);
//couleur rouge
$pdf->setFont('arial', '', 18);
$pdf->Cell(190, 10, 'Veuillez ne pas jeter de CMS aux developpeurs ca les rend dingues!!!', 0, 1, 'c');
$pdf->output();
//envoi au navigateur
コード例 #3
0
ファイル: test_composer.php プロジェクト: Ophois/webforce3
<?php
include_once 'vendor/setasign/fpdf/fpdf.php';

$pdf = new fpdf(); // nouveau document PDF
$pdf->addPage(); //ajout d'une page blanche
$pdf->setFont('Arial', '', 12); //police arial 12
$pdf->Cell(190,10,'Hello World!',0,1,'C');
$pdf->setTextColor(255,0,0); //couleur rouge
$pdf->Cell(190,10,'Copyright WF3',0,1,'C');
$pdf->Output(); // envoi au navigateur
?>
コード例 #4
0
ファイル: pdf.php プロジェクト: elliotjr/resumeBuilder
<?php

session_start();
// User Inputs
$name = $_POST['firstname'] . " " . $_POST['lastname'];
$email = $_POST['email'];
require "fpdf/fpdf.php";
//$pdf = new fpdf();
$pdf = new fpdf('P', 'mm', 'A4');
$pdf->SetMargins(5, 0, 0);
$pdf->AddPage();
//$pdf->cMargin = 0;
$pdf->Image('template/template.png', '', '', '210', '297', 'PNG');
$pdf->SetFont("Arial", "", "60");
$pdf->Cell(0, 40, $name, 1, 1, "L");
/*
  $pdf->SetFont("Arial", "U", "22");
  $pdf->Cell(0, 10, $name, 1, 1, "C");

  $pdf->SetFont("Arial", "I", "14");
  $pdf->Cell(0, 10, $email, 1, 1, "C");

  $pdf->SetFont("Arial", "I", "14");
  $pdf->Cell(0, 10, 'test', 1, 1, "C");*/
$pdf->Output();
コード例 #5
0
ファイル: relatorioPdf.php プロジェクト: hsnunes/ccheque
<?php

// Inclui a class fpdf
require 'pdf/fpdf.php';
// instancia a classe FPDF
$pdf = new fpdf('P', 'mm', 'A4');
// define os  atributos do pdf
$pdf->SetTitle('Teste Pdf 1');
$pdf->SetAuthor('HsNunes');
$pdf->SetCreator('HELO Nunes, Php ' . phpversion());
$pdf->SetKeywords('php, pdf, relatorio');
$pdf->SetSubject('Contracheque PDF');
// adiciona uma pagina
$pdf->AddPage();
$pdf->image('brasao_pb1.gif', 20, 13, 17, 0);
// define fonte
$pdf->SetFont('Arial', '', 10);
$demo = 'DEMOSTRATIVO DE PAGAMENTO E SALÁRIO ( CONTRA-CHEQUE )';
$pref = 'PREFEITURA MUNICIPAL DE TOME-AÇU';
$end = 'AV. TRES PODERES, 8787 - CENTRO TOME-AÇU - CEP: 12345-999 - PA';
$doc = 'CNPJ: 05.196.530/0001-00';
$pdf->Cell(40, 23, '', 1, 0);
$pdf->Cell(150, 23, '', 1, 1);
// marca os qutros cantos da pagina
//$pdf->Text( 20, 20, 'X1' );
//$pdf->Text( 190, 20, 'X2' );
//$pdf->Text( 0, 840, 'X3' );
//$pdf->Text( 576, 840, 'X4' );
$pdf->output();