本文整理汇总了PHP中PDF::SetTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SetTitle方法的具体用法?PHP PDF::SetTitle怎么用?PHP PDF::SetTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::SetTitle方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Cetak
function Cetak()
{
// *** Init PDF
$pdf = new PDF();
$pdf->SetTitle("Rekap Pembayaran Mahasiswa Per Bulan");
$pdf->AddPage('L', 'Legal');
$lbr = 190;
BuatIsinya($_SESSION['TahunID'], $_SESSION['ProdiID'], $pdf);
$pdf->Output();
}
示例2: Cetak
function Cetak()
{
// *** Init PDF
$pdf = new PDF();
$pdf->SetTitle("Pembayaran Mahasiswa Per Periode");
$pdf->AddPage();
$lbr = 190;
BuatIsinya($_SESSION['TahunID'], $_SESSION['ProdiID'], $pdf);
$pdf->Output();
}
示例3: Cetak
function Cetak()
{
// *** Init PDF
$pdf = new PDF();
$pdf->SetTitle("Penjualan Formulir");
$pdf->AddPage();
$lbr = 190;
BuatJudulLaporan($_SESSION['_PMBPeriodID'], $pdf);
BuatIsinya($_SESSION['_PMBPeriodID'], $pdf);
$pdf->Output();
}
示例4: Cetak
function Cetak()
{
$TahunID = sqling($_REQUEST['TahunID']);
$ProdiID = sqling($_REQUEST['ProdiID']);
$BIPOTNamaID = $_REQUEST['BIPOTNamaID'];
// *** Init PDF
$pdf = new PDF();
$pdf->SetTitle("Laporan Pembayaran Per Akun");
BuatIsinya($TahunID, $ProdiID, $BIPOTNamaID, $pdf);
$pdf->Output();
}
示例5: setup
/**
* PDF Setup - WT_Report_PDF
*/
function setup()
{
parent::setup();
// Setup the PDF class with custom size pages because WT supports more page sizes. If WT sends an unknown size name then the default would be A4
$this->pdf = new PDF($this->orientation, parent::unit, array($this->pagew, $this->pageh), self::unicode, "UTF-8", self::diskcache);
// Setup the PDF margins
$this->pdf->setMargins($this->leftmargin, $this->topmargin, $this->rightmargin);
$this->pdf->SetHeaderMargin($this->headermargin);
$this->pdf->SetFooterMargin($this->footermargin);
//Set auto page breaks
$this->pdf->SetAutoPageBreak(true, $this->bottommargin);
// Set font subsetting
$this->pdf->setFontSubsetting(self::subsetting);
// Setup PDF compression
$this->pdf->SetCompression(self::compression);
// Setup RTL support
$this->pdf->setRTL($this->rtl);
// Set the document information
// Only admin should see the version number
$appversion = WT_WEBTREES;
if (Auth::isAdmin()) {
$appversion .= " " . WT_VERSION;
}
$this->pdf->SetCreator($appversion . " (" . parent::wt_url . ")");
// Not implemented yet - WT_Report_Base::setup()
$this->pdf->SetAuthor($this->rauthor);
$this->pdf->SetTitle($this->title);
$this->pdf->SetSubject($this->rsubject);
$this->pdf->SetKeywords($this->rkeywords);
$this->pdf->setReport($this);
if ($this->showGenText) {
// The default style name for Generated by.... is 'genby'
$element = new CellPDF(0, 10, 0, "C", "", "genby", 1, ".", ".", 0, 0, "", "", true);
$element->addText($this->generatedby);
$element->setUrl(parent::wt_url);
$this->pdf->addFooter($element);
}
}
示例6: BuatHeaderLap
// Email : setio.dewo@gmail.com
// Start : 13 Oktober 2008
session_start();
include_once "../dwo.lib.php";
include_once "../db.mysql.php";
include_once "../connectdb.php";
include_once "../parameter.php";
include_once "../cekparam.php";
include_once "../header_pdf.php";
// *** Parameters ***
$gel = $_REQUEST['gel'];
$gels = GetFields('pmbperiod', "KodeID='" . KodeID . "' and PMBPeriodID", $gel, "*");
$lbr = 190;
// *** Cetak ***
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetTitle("Rekapitulasi Jumlah Pendaftar Per Periode");
$pdf->AddPage('P');
BuatHeaderLap($gel, $gels, $pdf);
TampilkanIsinya($gel, $gels, $pdf);
$pdf->Output();
// *** Functions ***
function BuatHeaderLap($gel, $gels, $p)
{
global $lbr;
$t = 6;
$p->SetFont('Helvetica', 'B', 14);
$p->Cell($lbr, $t, "Rekapitulasi Jumlah Pendaftar Per Periode", 0, 1, 'C');
$p->SetFont('Helvetica', 'B', 12);
$p->Cell($lbr, $t, "Sampai Dengan Periode {$gel}", 0, 1, 'C');
$p->Ln(4);
}
示例7: PDF
{
$usuarioNome = $_GET["UsuarioNome"];
//Posiciona a 1.5 cm do final
$this->SetY(-15);
//Arial italico 8
$this->SetFont('Arial', 'I', 7);
$this->Line(10, 281, 200, 281);
$this->Cell(0, 3, 'Emitido por: ' . $usuarioNome);
}
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('edinger@bol.com.br');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Detalhamento do cliente');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetY(25);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Detalhamento do Cliente', 1, 0, 'C', 1);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Tipo Cliente:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(39);
$pdf->Cell(0, 6, $conta_descricao, 0, 0, 'L');
$pdf->SetX(57);
示例8: PDF
global $Tipo;
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->SetMargins(4, 4, 4);
//~ ri esegue la stessa query della ricerca
$campi = $_SESSION['qpdf']['campi'];
$ord = $_SESSION['qpdf']['ord'];
$Risultati = GetRows("view_piano_conti", $campi, $ord, $db);
if (isset($_GET['tipo']) && $_GET['tipo'] != "") {
$Tipo = $_GET['tipo'];
switch ($_GET['tipo']) {
case "movimenti":
$Titolo = "Stampa Movimenti";
$pdf->AddPage('L');
// L = landscape
$pdf->SetTitle($Titolo);
$pdf->SetSubject($Titolo);
break;
case "mastrini":
$Titolo = "Stampa Mastrini";
$pdf->AddPage();
$pdf->SetTitle($Titolo);
$pdf->SetSubject($Titolo);
break;
}
}
/*
* 22/08/2009 01:04:49 CEST Claudio Giordano
*
* AddPage([string orientation ,[ mixed format]])
* Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [
示例9: CONCAT
include '../include/ManipulaDatas.php';
//Recupera os valores para filtragem
$edtPedidoId = $_GET["PedidoId"];
//Busca os dados do pedido
$sql_pedido = mysql_query("SELECT \n ped.id, \n ped.data, \n ped.hora, \n ped.data_venda,\n ped.formando_id, \n ped.usuario_cadastro_id, \n ped.observacoes,\n eve.id AS evento_id, \n eve.nome AS evento_nome, \n formando.nome AS formando_nome, \n CONCAT(usu.nome, ' ', usu.sobrenome) AS usuario_nome \n FROM fotovideo_pedido ped \n LEFT OUTER JOIN eventos_formando formando ON formando.id = ped.formando_id \n LEFT OUTER JOIN eventos eve ON eve.id = formando.evento_id \n LEFT OUTER JOIN usuarios usu ON usu.usuario_id = ped.usuario_cadastro_id\n WHERE ped.id = {$edtPedidoId}");
//Monta o array com os dados
$dados_pedido = mysql_fetch_array($sql_pedido);
class PDF extends FPDF
{
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Emissão do Pedido');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
//Recupera o nome da empresa
$empresaNome = 'Consoli Eventos Ltda';
$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();
示例10: ChapterBody
}
function ChapterBody($file)
{
//Read text file
$f = fopen($file, 'r');
$txt = fread($f, filesize($file));
fclose($f);
//Times 12
$this->SetFont('Times', '', 12);
//Output justified text
$this->MultiCell(0, 5, $txt);
//Line break
$this->Ln();
//Mention in italics
$this->SetFont('', 'I');
$this->Cell(0, 5, '(end of excerpt)');
}
function PrintChapter($num, $title, $file)
{
$this->AddPage();
$this->ChapterTitle($num, $title);
$this->ChapterBody($file);
}
}
$pdf = new PDF();
$title = '20000 Leagues Under the Seas';
$pdf->SetTitle($title);
$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter(1, 'A RUNAWAY REEF', '20k_c1.txt');
$pdf->PrintChapter(2, 'THE PROS AND CONS', '20k_c2.txt');
$pdf->Output();
示例11: PDO
$this->Ln(10);
}
}
include '../db/conn.inc.php';
$dbh = new PDO($conn, $user, $pass, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
$stmtMeucci = $dbh->prepare("SELECT * FROM datimeucci");
$stmtMeucci->execute();
$rsmeucci = $stmtMeucci->fetch(PDO::FETCH_ASSOC);
$sql = "SELECT azienda.*,stage.*,tirocinante.*,persTutor.PAZ_Titolo AS ta_Titolo,persTutor.PAZ_Nome AS ta_Nome,persTutor.PAZ_Telefono AS ta_Telefono, persTutor.PAZ_Cellulare AS ta_Cellulare, persTutor.PAZ_Email AS ta_Email, persLegal.*,tutor.* FROM stage INNER JOIN azienda ON ( azienda.AZ_ID = stage.AZ_ID_Azienda ) INNER JOIN tirocinante ON ( stage.TIR_ID_Tirocinante = tirocinante.TIR_ID ) INNER JOIN tutor ON ( tutor.TUT_ID = stage.TUT_ID_Tutor ) LEFT JOIN personale AS persTutor ON ( persTutor.PAZ_ID = stage.PAZ_ID_Tutor ) LEFT JOIN personale AS persLegal ON ( azienda.AZ_ID = persLegal.AZ_ID_Azienda AND persLegal.PAZ_RapprLegale =1 ) WHERE STA_ID=:id";
$stmt = $dbh->prepare($sql);
$stmt->bindValue(':id', $_GET['id']);
$stmt->execute();
if ($stmt->rowCount() > 0) {
$row = $stmt->fetch(PDO::FETCH_ASSOC);
$pdf = new PDF();
$pdf->SetTitle("Progetto formativo e di orientamento");
$pdf->AddFont('abac', '', 'abac.php');
$pdf->AddFont('abalc', '', 'ABALC.php');
$pdf->SetFillColor(255, 230, 255);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetLeftMargin(18);
$pdf->SetRightMargin(18);
$pdf->SetFont('abac', '', 14);
$pdf->Cell(0, 10, 'PROGETTO FORMATIVO e di ORIENTAMENTO', 0, 0, 'C');
$pdf->Ln(10);
$pdf->SetFont('abalc', '', 11);
$pdf->Cell(40, 6, 'Tirocinante ', 1, 0, 'R', 1);
$pdf->Cell(135, 6, ' ' . utf8_decode($row['TIR_Nome']) . ' ' . utf8_decode($row['TIR_Cognome']) . ' - C.F.: ' . utf8_decode($row['TIR_CodiceFiscale']), 1, 1);
$pdf->Cell(40, 6, 'Luogo e data di nascita ', 1, 0, 'R', 1);
$pdf->Cell(135, 6, ' ' . utf8_decode($row['TIR_NatoA']) . ' (' . $row['TIR_NatoProv'] . ') il ' . strftime('%d/%m/%Y', strtotime($row['TIR_DataNascita'])), 1, 1);
示例12:
$data[$key][] = $sessions[$key][7];
$data[$key][] = str_replace(".", ",", $_GET['kwh'] / 100);
$data[$key][] = str_replace(".", ",", $_GET['kwh'] / 100 * $sessions[$key][7]);
$total = $total + $_GET['kwh'] / 100 * $sessions[$key][7];
$key_next = $key;
}
for ($i = 0; $i < 8; $i++) {
$data[$key_next + 1][$i] = "";
}
$data[$key_next + 2][0] = "Total :";
for ($i = 1; $i < 7; $i++) {
$data[$key_next + 2][$i] = "";
}
$data[$key_next + 2][7] = str_replace(".", ",", $total);
//Page d'en-tête
$pdf->SetTitle('CSSH - Facturation');
$pdf->SetFont('Arial', '', 14);
$pdf->AddPage();
//Hypothèses de travail
$pdf->SetFillColor(224, 235, 255);
$pdf->SetFont('', 'BU', 16);
$pdf->Cell(70);
$pdf->Cell(50, 11, 'Période : du ' . $_GET['from'] . ' au ' . $_GET['to'], 0, 0, 'C');
$pdf->Ln(14);
$pdf->Cell(90);
$pdf->SetFont('', 'B', 14);
$pdf->Cell(5, 10, 'Coordonnées du club :', 0, 0, 'C');
$pdf->Ln(10);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(60);
$pdf->Cell(30, 5, 'Responsable : ', 0, 0, 'L', true);
示例13: explode
<?php
$name = $_POST['name'];
$characteristics = $_POST['characteristics'];
$image = $_POST['image'];
$clues = explode(',', $_POST['clues']);
require 'MultiCellBlt2.php';
//Create pdf
$pdf = new PDF();
$pdf->AddPage();
//set document properties
$pdf->SetAuthor('Anon');
$pdf->SetTitle($name);
// Set the page break to 'true' and the bottom margin height
$pdf->SetAutoPageBreak(1, 10);
//set font for the entire document
$pdf->SetFont('Helvetica', 'B', 20);
$pdf->SetTextColor(50, 60, 100);
//insert Collage logo
$pdf->Image('logo.png', 10, 10, 33, 0);
//display the title without a border around it
$pdf->SetXY(50, 15);
$pdf->SetDrawColor(50, 60, 100);
$pdf->Cell(100, 10, $name, 0, 0, 'C', 0);
// Insert a dynamic image from a URL
$pdf->Image($image, 11, 30, 0, 50);
//Set x and y position for the main text, reduce font size and write content
$pdf->SetXY(65, 30);
$pdf->SetLeftMargin(65);
$pdf->SetFontSize(10);
$pdf->Write(5, $characteristics);
示例14: Footer
$this->Cell(30, 6, "Party Address", 0, 0, 'L');
$this->Cell(63, 6, $ret['party_address'], 'B', 1, 'L');
}
$this->Ln(5);
//Ensure table header is output
parent::Header();
}
function Footer()
{
}
}
$pdf = new PDF('P', 'mm', 'MA5');
$pdf->AliasNbPages();
$pdf->SetAuthor("imranzahid+nexexcel@gmail.com");
$pdf->SetSubject("Account Ledger");
$pdf->SetTitle("Account Ledger");
$pdf->SetCreator("Imran Zahid");
$prop = array('HeaderColor' => array(255, 255, 255), 'HeaderTextColor' => array(0, 0, 0), 'color1' => array(255, 255, 255), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 2, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
foreach ($ledger as $ret) {
if ($ret == NULL) {
continue;
}
$pdf->AddPage();
$pdf->AddCol('invseq', '9%', 'Invoice #', 'L');
$pdf->AddCol('voucher_date', '10%', 'Date', 'L');
$pdf->AddCol('voucher_cheque', '9%', 'Cheque', 'L');
//if ($ret['account_cate'] != '276') {
$pdf->AddCol('voucher_remarks', '42%', 'Description', 'L');
/*} else {
$pdf->AddCol('voucher_remarks', '43%', 'Description', 'L');
$pdf->AddCol('days', '5%', 'Days', 'R');
示例15: format
function format($text)
{
include_once 'lib/Template.php';
global $request;
$tokens['page'] = $this->_page;
$tokens['CONTENT'] = $this->_transform($text);
$pagename = $this->_page->getName();
// This is a XmlElement tree, which must be converted to PDF
// We can make use of several pdf extensions. This one - fpdf
// - is pure php and very easy, but looks quite ugly and has a
// terrible interface, as terrible as most of the othes.
// The closest to HTML is htmldoc which needs an external cgi
// binary.
// We use a custom HTML->PDF class converter from PHPWebthings
// to be able to use templates for PDF.
require_once 'lib/fpdf.php';
require_once 'lib/pdf.php';
$pdf = new PDF();
$pdf->SetTitle($pagename);
$pdf->SetAuthor($this->_page->get('author'));
$pdf->SetCreator(WikiURL($pagename, false, 1));
$pdf->AliasNbPages();
$pdf->AddPage();
//TODO: define fonts
$pdf->SetFont('Times', '', 12);
//$pdf->SetFont('Arial','B',16);
// PDF pagelayout from a special template
$template = new Template('pdf', $request, $tokens);
$pdf->ConvertFromHTML($template);
// specify filename, destination
$pdf->Output($pagename . ".pdf", 'I');
// I for stdin or D for download
// Output([string name [, string dest]])
return $pdf;
}