本文整理匯總了PHP中FPDF::Header方法的典型用法代碼示例。如果您正苦於以下問題:PHP FPDF::Header方法的具體用法?PHP FPDF::Header怎麽用?PHP FPDF::Header使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FPDF
的用法示例。
在下文中一共展示了FPDF::Header方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Header
function Header()
{
//Logo
parent::Header();
$this->Image('../images/logo.png', 10, 8, 45);
$this->SetFont('Helvetica', 'B', 13);
$this->SetTitle("Allan");
$this->SetXY(50, 15);
$this->Cell(0, 0, 'EQUITY INVESTMENT BANK REVENUE REPORT', 0, 0, 'C');
}
示例2: Header
function Header()
{
parent::Header();
$this->SetY($this->h * -1);
//$this->image('images/logo.png',$this->lMargin,2,70,10);
$this->SetY($this->h * -1);
$this->SetFont('Arial', 'B', 10);
$this->SetTextColor(0);
//$this->Cell(0,10,'Sistem Informasi Perkiraan ',0,1,'R');
$this->SetY($this->h * -1 + 5);
//$this->Cell(0,10,'CV. Surabaya Intelectual Club ',0,1,'R');
//$this->SetFillColor(0,0,0);
//$this->Cell($this->w-$this->rMargin-$this->lMargin,0.2,'',1,0,'L',1);
//Return Font to normal
//$this->SetFont('Arial','',11);
//$this->SetX($this->lMargin);
//$this->SetY(($this->h*-1)+$this->tMargin);
$this->_makePageSize();
}
示例3: Header
public function Header()
{
parent::Header();
foreach ($this->listeners as $l) {
$l->onHeader();
}
}
示例4: FPDF
$this->Cell(15, 4, 'Interval', 1);
$this->Cell(15, 4, 'Point', 1);
$this->Ln();
for ($i = 0; $i < count($g); $i++) {
$this->Cell(150);
$this->Cell(15, 4, '' . $g[$i], 1);
$this->Cell(15, 4, '' . $in[$i], 1);
$this->Cell(15, 4, '' . $p[$i], 1);
$this->Ln();
}
$this->Ln();
}
}
$pdf = new FPDF('L', 'mm', 'A4');
$pdf->AddPage();
$pdf->Header();
// the variables that hopefully generated by quering the database.
$name = "Abdullah Al Zakir Hossain";
$fname = "Prof. Dr. Mokbul Hossain";
$mname = "Mrs. Zakia Hossain";
$sroll = "04101009";
$group = "CSE";
$subjectname[] = "Bangla 1st paper";
$subjectname[] = "Bangla 2nd paper";
$subjectname[] = "English 1st paper";
$subjectname[] = "English 2nd paper";
$subjectname[] = "General Math";
$subjectname[] = "Religious Studies";
$subjectname[] = "General Science";
$subjectname[] = "Geography";
$subjectname[] = "History";