FusionDirectory
include
exporter
class_PDF.php
Go to the documentation of this file.
1
<?php
2
/*
3
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
4
Copyright (C) 2003-2010 Cajus Pollmeier
5
Copyright (C) 2011-2016 FusionDirectory
6
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20
*/
21
30
class
PDF
extends
FPDF
31
{
32
var $headline =
""
;
33
39
function
setHeadline
($headline)
40
{
41
$this->headline = $headline;
42
}
43
47
function
Header
()
48
{
49
$this->SetFont(
'Helvetica'
,
'B'
, 10);
50
$this->Cell(0, 0, $this->headline, 0, 0,
'L'
);
51
$this->Ln(5);
52
}
53
57
function
Footer
()
58
{
59
$this->SetY(-15);
60
$this->SetFont(
'Helvetica'
,
'I'
, 8);
61
$this->Cell(0, 10, _(
"Page"
).
" "
.$this->PageNo().
'/{nb}'
, 0, 0,
'C'
);
62
}
63
}
PDF
This class contains all the functions to manage pdf.
Definition:
class_PDF.php:30
PDF\setHeadline
setHeadline($headline)
Set the headline.
Definition:
class_PDF.php:39
PDF\Footer
Footer()
Set position from the bottom and the number of the page.
Definition:
class_PDF.php:57
FPDF
PDF\Header
Header()
Set font and cell for the header page.
Definition:
class_PDF.php:47
Generated on Mon Feb 24 2025 17:39:36 for FusionDirectory by
1.8.13